SslFactory

SslFactory is created when:

Creating SslFactory Instance

SslFactory takes the following to be created:

  • Mode (i.e. CLIENT or SERVER)

  • clientAuthConfigOverride text

  • keystoreVerifiableUsingTruststore flag

SslFactory initializes the internal properties.

configure Method

void configure(
  Map<String, ?> configs)
Note
configure is part of the Configurable contract to pass configurations.

configure initializes the endpoint identification algorithm internal registry based on ssl.endpoint.identification.algorithm configuration property.

configure…​FIXME

validateReconfiguration Method

void validateReconfiguration(
  Map<String, ?> newConfigs)
Note
validateReconfiguration is part of the Reconfigurable to…​FIXME.

validateReconfiguration…​FIXME

reconfigure Method

void reconfigure(
  Map<String, ?> newConfigs)
Note
reconfigure is part of the Reconfigurable to…​FIXME.

reconfigure…​FIXME

createSslEngine Method

SSLEngine createSslEngine(
  String peerHost,
  int peerPort)

createSslEngine simply requests the SslEngineBuilder to createSslEngine for the given peerHost and peerPort (and the mode and the endpointIdentification).

createSslEngine throws an IllegalStateException if the sslEngineBuilder hasn’t been initialized yet (null):

SslFactory has not been configured.
Note
createSslEngine is used when SaslChannelBuilder and SslChannelBuilder are requested to buildTransportLayer.

createNewSslEngineBuilder Internal Method

SslEngineBuilder createNewSslEngineBuilder(
  Map<String, ?> newConfigs)

createNewSslEngineBuilder…​FIXME

Note
createNewSslEngineBuilder is used when SslFactory is requested to validateReconfiguration and reconfigure.

Internal Properties

Name Description

endpointIdentification

Name of the algorithm for endpoint identification (based on ssl.endpoint.identification.algorithm configuration property)

Used when SslFactory is requested for a SSLEngine.

sslEngineBuilder

Initialized when SslFactory is requested to configure and then later when requested to reconfigure (with a new configuration)

results matching ""

    No results matching ""