Class SSLEngineFactoryImpl

    • Field Detail

      • CIPHER_SUITE_ALLOWLIST

        public static final java.lang.String[] CIPHER_SUITE_ALLOWLIST
    • Constructor Detail

      • SSLEngineFactoryImpl

        public SSLEngineFactoryImpl​(SSLEngineFactoryImpl.Config config)
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • filterDisallowedCiphersuites

        public static java.lang.String[] filterDisallowedCiphersuites​(java.lang.String[] ciphersuites)
                                                               throws javax.net.ssl.SSLProtocolException
        Throws:
        javax.net.ssl.SSLProtocolException
      • getSSLContext

        public javax.net.ssl.SSLContext getSSLContext()
        Specified by:
        getSSLContext in interface SslFactory
        Returns:
        an SSLContext object
        See Also:
        SSLContext
      • getSSLParameters

        public javax.net.ssl.SSLParameters getSSLParameters()
        Specified by:
        getSSLParameters in interface SslFactory
        Returns:
        an SSLParameters object
        See Also:
        SSLParameters
      • isSslEnabled

        public boolean isSslEnabled()
        Specified by:
        isSslEnabled in interface SslFactory
        Returns:
        Whether the implementation enforces SSL
      • isSslRequireClientCerts

        public boolean isSslRequireClientCerts()
      • setSslRequireClientCerts

        public void setSslRequireClientCerts​(boolean sslRequireClientCerts)
      • context

        public io.netty.handler.ssl.SslContext context​(boolean isServer)
        Description copied from interface: SSLEngineFactory
        The default implementation for the anonymous classes below. :69
        Specified by:
        context in interface SSLEngineFactory
        Parameters:
        isServer - true for server SSL context.
        Returns:
        instance of SslContext
      • createSSLEngine

        public javax.net.ssl.SSLEngine createSSLEngine​(io.netty.buffer.ByteBufAllocator alloc,
                                                       java.lang.String host,
                                                       int port,
                                                       boolean isServer)
        Specified by:
        createSSLEngine in interface SSLEngineFactory
      • createSSLEngine

        public javax.net.ssl.SSLEngine createSSLEngine​(io.netty.buffer.ByteBufAllocator alloc,
                                                       boolean isServer)
        Specified by:
        createSSLEngine in interface SSLEngineFactory
      • sessionContext

        public javax.net.ssl.SSLSessionContext sessionContext​(boolean isServer)
        Specified by:
        sessionContext in interface SSLEngineFactory