Interface BCSSLSocket


  • public interface BCSSLSocket
    A BCJSSE-specific interface to expose extended functionality on SSLSocket implementations.
    • Method Detail

      • connect

        void connect​(java.lang.String host,
                     int port,
                     int timeout)
              throws java.io.IOException
        Throws:
        java.io.IOException
      • getApplicationProtocol

        java.lang.String getApplicationProtocol()
      • setBCHandshakeApplicationProtocolSelector

        void setBCHandshakeApplicationProtocolSelector​(BCApplicationProtocolSelector<javax.net.ssl.SSLSocket> selector)
      • getConnection

        BCSSLConnection getConnection()
        Returns an accessor for extended SSL connection data. This method will initiate the initial handshake if necessary and then block until the handshake has been established. If an error occurs during the initial handshake, this method returns null.
        Returns:
        A BCSSLConnection instance.
      • getHandshakeApplicationProtocol

        java.lang.String getHandshakeApplicationProtocol()
      • setHost

        void setHost​(java.lang.String host)
        Allows explicit setting of the 'host' String when the SocketFactory methods that include it as an argument are not used.

        Must be called prior to attempting to connect the socket to have any effect.

        Parameters:
        host - the server host name with which to connect, or null for the loopback address.
      • setParameters

        void setParameters​(BCSSLParameters parameters)
        Sets parameters according to the properties in a BCSSLParameters.

        Note that any properties set to null will be ignored, which will leave the corresponding settings unchanged.

        Parameters:
        parameters - the parameters to set
        Throws:
        java.lang.IllegalArgumentException - if the cipherSuites or protocols properties contain unsupported values