Home / Class/ BouncyCastleAlpnSslEngine Class — netty Architecture

BouncyCastleAlpnSslEngine Class — netty Architecture

Architecture documentation for the BouncyCastleAlpnSslEngine class in BouncyCastleAlpnSslEngine.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  836d3b73_8cf4_9bbc_2909_e1ee92d26968["BouncyCastleAlpnSslEngine"]
  222465da_969e_4e0a_5138_0e9731425962["BouncyCastleAlpnSslEngine.java"]
  836d3b73_8cf4_9bbc_2909_e1ee92d26968 -->|defined in| 222465da_969e_4e0a_5138_0e9731425962
  a469827c_80b2_0435_f517_775947ee704a["BouncyCastleAlpnSslEngine()"]
  836d3b73_8cf4_9bbc_2909_e1ee92d26968 -->|method| a469827c_80b2_0435_f517_775947ee704a
  7cc8e9da_d81d_6580_60ac_83877243bf66["String()"]
  836d3b73_8cf4_9bbc_2909_e1ee92d26968 -->|method| 7cc8e9da_d81d_6580_60ac_83877243bf66
  8c0111b5_6f97_0a83_26b7_19eb8512e2ad["setHandshakeApplicationProtocolSelector()"]
  836d3b73_8cf4_9bbc_2909_e1ee92d26968 -->|method| 8c0111b5_6f97_0a83_26b7_19eb8512e2ad
  6de2e6c3_89ea_5c30_b139_7c58e1c9ae6a["getHandshakeApplicationProtocolSelector()"]
  836d3b73_8cf4_9bbc_2909_e1ee92d26968 -->|method| 6de2e6c3_89ea_5c30_b139_7c58e1c9ae6a

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/BouncyCastleAlpnSslEngine.java lines 23–59

final class BouncyCastleAlpnSslEngine extends JdkAlpnSslEngine {

    BouncyCastleAlpnSslEngine(SSLEngine engine,
                     @SuppressWarnings("deprecation") JdkApplicationProtocolNegotiator applicationNegotiator,
                     boolean isServer) {
        super(engine, applicationNegotiator, isServer,
                new BiConsumer<SSLEngine, AlpnSelector>() {
                    @Override
                    public void accept(SSLEngine e, AlpnSelector s) {
                        BouncyCastleAlpnSslUtils.setHandshakeApplicationProtocolSelector(e, s);
                    }
                },
                new BiConsumer<SSLEngine, List<String>>() {
                    @Override
                    public void accept(SSLEngine e, List<String> p) {
                        BouncyCastleAlpnSslUtils.setApplicationProtocols(e, p);
                    }
                });
    }

    public String getApplicationProtocol() {
        return BouncyCastleAlpnSslUtils.getApplicationProtocol(getWrappedEngine());
    }

    public String getHandshakeApplicationProtocol() {
        return BouncyCastleAlpnSslUtils.getHandshakeApplicationProtocol(getWrappedEngine());
    }

    public void setHandshakeApplicationProtocolSelector(BiFunction<SSLEngine, List<String>, String> selector) {
        BouncyCastleAlpnSslUtils.setHandshakeApplicationProtocolSelector(getWrappedEngine(), selector);
    }

    public BiFunction<SSLEngine, List<String>, String> getHandshakeApplicationProtocolSelector() {
        return BouncyCastleAlpnSslUtils.getHandshakeApplicationProtocolSelector(getWrappedEngine());
    }

}

Frequently Asked Questions

What is the BouncyCastleAlpnSslEngine class?
BouncyCastleAlpnSslEngine is a class in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/BouncyCastleAlpnSslEngine.java.
Where is BouncyCastleAlpnSslEngine defined?
BouncyCastleAlpnSslEngine is defined in handler/src/main/java/io/netty/handler/ssl/BouncyCastleAlpnSslEngine.java at line 23.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free