Package io.servicetalk.transport.api
Class DelegatingClientSslConfig
java.lang.Object
io.servicetalk.transport.api.DelegatingSslConfig<ClientSslConfig>
io.servicetalk.transport.api.DelegatingClientSslConfig
- All Implemented Interfaces:
ClientSslConfig
,SslConfig
public class DelegatingClientSslConfig
extends DelegatingSslConfig<ClientSslConfig>
implements ClientSslConfig
Wrap a
ClientSslConfig
and delegate all methods to it.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.servicetalk.transport.api.SslConfig
SslConfig.CipherSuiteFilter
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DelegatingClientSslConfig
(ClientSslConfig delegate) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionGet the algorithm to use for hostname verification to verify the server identity.peerHost()
Get the non-authoritative name of the peer.int
peerPort()
Get the non-authoritative port of the peer.Get the SNI host name.Methods inherited from class io.servicetalk.transport.api.DelegatingSslConfig
alpnProtocols, certificateCompressionAlgorithms, ciphers, cipherSuiteFilter, delegate, handshakeTimeout, keyCertChainSupplier, keyManagerFactory, keyPassword, keySupplier, maxCertificateListBytes, provider, sessionCacheSize, sessionTimeout, sslProtocols, trustCertChainSupplier, trustManagerFactory
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.servicetalk.transport.api.SslConfig
alpnProtocols, certificateCompressionAlgorithms, ciphers, cipherSuiteFilter, handshakeTimeout, keyCertChainSupplier, keyManagerFactory, keyPassword, keySupplier, maxCertificateListBytes, provider, sessionCacheSize, sessionTimeout, sslProtocols, trustCertChainSupplier, trustManagerFactory
-
Constructor Details
-
DelegatingClientSslConfig
Create a new instance.- Parameters:
delegate
- The instance to delegate to.
-
-
Method Details
-
hostnameVerificationAlgorithm
Description copied from interface:ClientSslConfig
Get the algorithm to use for hostname verification to verify the server identity.- Specified by:
hostnameVerificationAlgorithm
in interfaceClientSslConfig
- Returns:
- The algorithm to use when verifying the host name. See Endpoint Identification Algorithm Name.
- See Also:
-
peerHost
Description copied from interface:ClientSslConfig
Get the non-authoritative name of the peer.- Specified by:
peerHost
in interfaceClientSslConfig
- Returns:
- the non-authoritative name of the peer, or
null
if unavailable (which may require disablinghostname verification
, and may disable session resumption). - See Also:
-
peerPort
public int peerPort()Description copied from interface:ClientSslConfig
Get the non-authoritative port of the peer.- Specified by:
peerPort
in interfaceClientSslConfig
- Returns:
- the non-authoritative port of the peer, or
-1
if unavailable (which may prevent session resumption). - See Also:
-
sniHostname
Description copied from interface:ClientSslConfig
Get the SNI host name.- Specified by:
sniHostname
in interfaceClientSslConfig
- Returns:
- The SNI host name, or
null
to not enable SNI. - See Also:
-