Interface BCSSLEngine


public interface BCSSLEngine
A BCJSSE-specific interface to expose extended functionality on SSLEngine implementations.
  • Method Details

    • getApplicationProtocol

      String getApplicationProtocol()
    • getBCHandshakeApplicationProtocolSelector

      BCApplicationProtocolSelector<SSLEngine> getBCHandshakeApplicationProtocolSelector()
    • setBCHandshakeApplicationProtocolSelector

      void setBCHandshakeApplicationProtocolSelector(BCApplicationProtocolSelector<SSLEngine> selector)
    • setBCSessionToResume

      void setBCSessionToResume(BCExtendedSSLSession session)
    • getBCHandshakeSession

      BCExtendedSSLSession getBCHandshakeSession()
    • getBCSession

      BCExtendedSSLSession getBCSession()
    • getConnection

      BCSSLConnection getConnection()
      Returns an accessor for extended SSL connection data. Unlike BCSSLSocket.getConnection() this method does not block until handshaking is complete. Until the initial handshake has completed, this method returns null.
      Returns:
      A BCSSLConnection instance.
    • getHandshakeApplicationProtocol

      String getHandshakeApplicationProtocol()
    • getParameters

      BCSSLParameters getParameters()
      Returns a BCSSLParameters with properties reflecting the current configuration.
      Returns:
      the current parameters
    • setParameters

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

      Note that many properties set to null will be ignored, which will leave the corresponding settings unchanged. However, the newer properties signatureSchemes, signatureSchemesCert, namedGroups and earlyKeyShares are always applied, and setting one of them to null restores the default behaviour for that property.

      Parameters:
      parameters - the parameters to set
      Throws:
      IllegalArgumentException - if the setEnabledCipherSuites() or the setEnabledProtocols() call fails