Class AbstractJsseEndpoint<S,​U>

    • Constructor Detail

      • AbstractJsseEndpoint

        public AbstractJsseEndpoint()
    • Method Detail

      • getSslImplementationName

        public java.lang.String getSslImplementationName()
      • setSslImplementationName

        public void setSslImplementationName​(java.lang.String s)
      • getSniParseLimit

        public int getSniParseLimit()
      • setSniParseLimit

        public void setSniParseLimit​(int sniParseLimit)
      • initialiseSsl

        protected void initialiseSsl()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createSSLContext

        protected void createSSLContext​(SSLHostConfig sslHostConfig)
                                 throws java.lang.IllegalArgumentException
        Description copied from class: AbstractEndpoint
        Create the SSLContext for the given SSLHostConfig.
        Specified by:
        createSSLContext in class AbstractEndpoint<S,​U>
        Parameters:
        sslHostConfig - The SSLHostConfig for which the SSLContext should be created
        Throws:
        java.lang.IllegalArgumentException
      • createSSLEngine

        protected javax.net.ssl.SSLEngine createSSLEngine​(java.lang.String sniHostName,
                                                          java.util.List<Cipher> clientRequestedCiphers,
                                                          java.util.List<java.lang.String> clientRequestedApplicationProtocols)
      • isAlpnSupported

        public boolean isAlpnSupported()
        Description copied from class: AbstractEndpoint
        Identifies if the endpoint supports ALPN. Note that a return value of true implies that AbstractEndpoint.isSSLEnabled() will also return true.
        Specified by:
        isAlpnSupported in class AbstractEndpoint<S,​U>
        Returns:
        true if the endpoint supports ALPN in its current configuration, otherwise false.
      • unbind

        public void unbind()
                    throws java.lang.Exception
        Specified by:
        unbind in class AbstractEndpoint<S,​U>
        Throws:
        java.lang.Exception
      • getServerSocket

        protected abstract java.nio.channels.NetworkChannel getServerSocket()
      • getLocalAddress

        protected final java.net.InetSocketAddress getLocalAddress()
                                                            throws java.io.IOException
        Description copied from class: AbstractEndpoint
        Obtain the network address the server socket is bound to. This primarily exists to enable the correct address to be used when unlocking the server socket since it removes the guess-work involved if no address is specifically set.
        Specified by:
        getLocalAddress in class AbstractEndpoint<S,​U>
        Returns:
        The network address that the server socket is listening on or null if the server socket is not currently bound.
        Throws:
        java.io.IOException - If there is a problem determining the currently bound socket