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
ConstructorsModifierConstructorDescriptionprotectedDelegatingClientSslConfig(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.intpeerPort()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, trustManagerFactoryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ClientSslConfigGet the algorithm to use for hostname verification to verify the server identity.- Specified by:
hostnameVerificationAlgorithmin interfaceClientSslConfig- Returns:
- The algorithm to use when verifying the host name. See Endpoint Identification Algorithm Name.
- See Also:
-
peerHost
Description copied from interface:ClientSslConfigGet the non-authoritative name of the peer.- Specified by:
peerHostin interfaceClientSslConfig- Returns:
- the non-authoritative name of the peer, or
nullif unavailable (which may require disablinghostname verification, and may disable session resumption). - See Also:
-
peerPort
public int peerPort()Description copied from interface:ClientSslConfigGet the non-authoritative port of the peer.- Specified by:
peerPortin interfaceClientSslConfig- Returns:
- the non-authoritative port of the peer, or
-1if unavailable (which may prevent session resumption). - See Also:
-
sniHostname
Description copied from interface:ClientSslConfigGet the SNI host name.- Specified by:
sniHostnamein interfaceClientSslConfig- Returns:
- The SNI host name, or
nullto not enable SNI. - See Also:
-