Interface ClientSecurityConfigurator
-
- All Superinterfaces:
SecurityConfigurator
- All Known Subinterfaces:
GrpcClientSecurityConfigurator<U,R>,PartitionedHttpClientSecurityConfigurator<U,R>,SingleAddressHttpClientSecurityConfigurator<U,R>
@Deprecated public interface ClientSecurityConfigurator extends SecurityConfigurator
Deprecated.ASecurityConfiguratorcontract for clients.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.servicetalk.transport.api.SecurityConfigurator
SecurityConfigurator.SslProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ClientSecurityConfiguratorciphers(java.lang.Iterable<java.lang.String> ciphers)Deprecated.The cipher suites to enable, in the order of preference.ClientSecurityConfiguratordisableHostnameVerification()Deprecated.Disable verification of the server identity.ClientSecurityConfiguratorhostnameVerification(java.lang.String hostNameVerificationHost)Deprecated.Set the host name used to verify the server identity.ClientSecurityConfiguratorhostnameVerification(java.lang.String hostNameVerificationHost, int hostNameVerificationPort)Deprecated.Set the host name and port used to verify the server identity.ClientSecurityConfiguratorhostnameVerification(java.lang.String hostNameVerificationAlgorithm, java.lang.String hostNameVerificationHost)Deprecated.Determines what algorithm to use for hostname verification.ClientSecurityConfiguratorhostnameVerification(java.lang.String hostNameVerificationAlgorithm, java.lang.String hostNameVerificationHost, int hostNameVerificationPort)Deprecated.Determines what algorithm to use for hostname verification.ClientSecurityConfiguratorhostnameVerificationAlgorithm(java.lang.String hostNameVerificationAlgorithm)Deprecated.Determines what algorithm to use for hostname verification.ClientSecurityConfiguratorkeyManager(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier)Deprecated.Identifying certificate for this host.ClientSecurityConfiguratorkeyManager(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier, java.lang.String keyPassword)Deprecated.Identifying certificate for this host.ClientSecurityConfiguratorkeyManager(javax.net.ssl.KeyManagerFactory keyManagerFactory)Deprecated.Identifying certificate for this host.ClientSecurityConfiguratorprotocols(java.lang.String... protocols)Deprecated.The SSL protocols to enable, in the order of preference.ClientSecurityConfiguratorprovider(SecurityConfigurator.SslProvider provider)Deprecated.Sets theSecurityConfigurator.SslProviderto use.ClientSecurityConfiguratorsessionCacheSize(long sessionCacheSize)Deprecated.Set the size of the cache used for storing SSL session objects.ClientSecurityConfiguratorsessionTimeout(long sessionTimeout)Deprecated.Set the timeout for the cached SSL session objects, in seconds.ClientSecurityConfiguratorsniHostname(java.lang.String sniHostname)Deprecated.Set the SNI host name.ClientSecurityConfiguratortrustManager(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)Deprecated.Trusted certificates for verifying the remote endpoint's certificate.ClientSecurityConfiguratortrustManager(javax.net.ssl.TrustManagerFactory trustManagerFactory)Deprecated.Trust manager for verifying the remote endpoint's certificate.
-
-
-
Method Detail
-
trustManager
ClientSecurityConfigurator trustManager(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)
Deprecated.Description copied from interface:SecurityConfiguratorTrusted certificates for verifying the remote endpoint's certificate. The input stream should contain anX.509certificate chain inPEMformat.- Specified by:
trustManagerin interfaceSecurityConfigurator- Parameters:
trustCertChainSupplier- a supplier for the certificate chain input stream.The responsibility to call
InputStream.close()is transferred to callers of the returnedSupplier. If this is not the desired behavior then wrap theInputStreamand overrideInputStream.close().- Returns:
this.
-
trustManager
ClientSecurityConfigurator trustManager(javax.net.ssl.TrustManagerFactory trustManagerFactory)
Deprecated.Description copied from interface:SecurityConfiguratorTrust manager for verifying the remote endpoint's certificate. TheTrustManagerFactorywhich take preference over any configuredSupplier.- Specified by:
trustManagerin interfaceSecurityConfigurator- Parameters:
trustManagerFactory- theTrustManagerFactoryto use.- Returns:
this.
-
protocols
ClientSecurityConfigurator protocols(java.lang.String... protocols)
Deprecated.Description copied from interface:SecurityConfiguratorThe SSL protocols to enable, in the order of preference.- Specified by:
protocolsin interfaceSecurityConfigurator- Parameters:
protocols- the protocols to use.- Returns:
this.- See Also:
SSLEngine.setEnabledProtocols(String[])
-
ciphers
ClientSecurityConfigurator ciphers(java.lang.Iterable<java.lang.String> ciphers)
Deprecated.Description copied from interface:SecurityConfiguratorThe cipher suites to enable, in the order of preference.- Specified by:
ciphersin interfaceSecurityConfigurator- Parameters:
ciphers- the ciphers to use.- Returns:
this.
-
sessionCacheSize
ClientSecurityConfigurator sessionCacheSize(long sessionCacheSize)
Deprecated.Description copied from interface:SecurityConfiguratorSet the size of the cache used for storing SSL session objects.- Specified by:
sessionCacheSizein interfaceSecurityConfigurator- Parameters:
sessionCacheSize- the cache size.- Returns:
this.
-
sessionTimeout
ClientSecurityConfigurator sessionTimeout(long sessionTimeout)
Deprecated.Description copied from interface:SecurityConfiguratorSet the timeout for the cached SSL session objects, in seconds.- Specified by:
sessionTimeoutin interfaceSecurityConfigurator- Parameters:
sessionTimeout- the session timeout.- Returns:
this.
-
provider
ClientSecurityConfigurator provider(SecurityConfigurator.SslProvider provider)
Deprecated.Description copied from interface:SecurityConfiguratorSets theSecurityConfigurator.SslProviderto use.- Specified by:
providerin interfaceSecurityConfigurator- Parameters:
provider- the provider.- Returns:
this.
-
hostnameVerificationAlgorithm
ClientSecurityConfigurator hostnameVerificationAlgorithm(java.lang.String hostNameVerificationAlgorithm)
Deprecated.Determines what algorithm to use for hostname verification.- Parameters:
hostNameVerificationAlgorithm- The algorithm to use when verifying the host name. See Supported algorithm names.- Returns:
this.- See Also:
SSLParameters.setEndpointIdentificationAlgorithm(String)
-
hostnameVerification
ClientSecurityConfigurator hostnameVerification(java.lang.String hostNameVerificationAlgorithm, java.lang.String hostNameVerificationHost)
Deprecated.Determines what algorithm to use for hostname verification.- Parameters:
hostNameVerificationAlgorithm- The algorithm to use when verifying the host name. See Supported algorithm names.hostNameVerificationHost- the host name used to verify the server identity.- Returns:
this.- See Also:
SSLParameters.setEndpointIdentificationAlgorithm(String)
-
hostnameVerification
ClientSecurityConfigurator hostnameVerification(java.lang.String hostNameVerificationAlgorithm, java.lang.String hostNameVerificationHost, int hostNameVerificationPort)
Deprecated.Determines what algorithm to use for hostname verification.- Parameters:
hostNameVerificationAlgorithm- The algorithm to use when verifying the host name. See Supported algorithm names.hostNameVerificationHost- the host name used to verify the server identity.hostNameVerificationPort- The port which maybe used to verify the server identity.- Returns:
this.- See Also:
SSLParameters.setEndpointIdentificationAlgorithm(String)
-
hostnameVerification
ClientSecurityConfigurator hostnameVerification(java.lang.String hostNameVerificationHost)
Deprecated.Set the host name used to verify the server identity.- Parameters:
hostNameVerificationHost- the host name used to verify the server identity.- Returns:
this.
-
hostnameVerification
ClientSecurityConfigurator hostnameVerification(java.lang.String hostNameVerificationHost, int hostNameVerificationPort)
Deprecated.Set the host name and port used to verify the server identity.- Parameters:
hostNameVerificationHost- the host name used to verify the server identity.hostNameVerificationPort- The port which maybe used to verify the server identity.- Returns:
this.- See Also:
SSLParameters.setEndpointIdentificationAlgorithm(String)
-
sniHostname
ClientSecurityConfigurator sniHostname(java.lang.String sniHostname)
Deprecated.Set the SNI host name.- Parameters:
sniHostname- The SNI host name.- Returns:
this.
-
disableHostnameVerification
ClientSecurityConfigurator disableHostnameVerification()
Deprecated.Disable verification of the server identity.- Returns:
this.
-
keyManager
ClientSecurityConfigurator keyManager(javax.net.ssl.KeyManagerFactory keyManagerFactory)
Deprecated.Identifying certificate for this host.keyManagerFactorymay benull, which disables mutual authentication. TheKeyManagerFactorywhich take preference over any configuredSupplier.- Parameters:
keyManagerFactory- anKeyManagerFactory.- Returns:
this.
-
keyManager
ClientSecurityConfigurator keyManager(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier)
Deprecated.Identifying certificate for this host.keyCertChainInputStreamandkeyInputStreammay benull, which disables mutual authentication.- Parameters:
keyCertChainSupplier- aSupplierthat will provide an input stream for aX.509certificate chain inPEMformat.The responsibility to call
InputStream.close()is transferred to callers of theSupplier. If this is not the desired behavior then wrap theInputStreamand overrideInputStream.close().keySupplier- anSupplierthat will provide an input stream for a KCS#8 private key in PEM format.The responsibility to call
InputStream.close()is transferred to callers of theSupplier. If this is not the desired behavior then wrap theInputStreamand overrideInputStream.close().- Returns:
this.
-
keyManager
ClientSecurityConfigurator keyManager(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier, java.lang.String keyPassword)
Deprecated.Identifying certificate for this host.keyCertChainInputStreamandkeyInputStreammay benull, which disables mutual authentication.- Parameters:
keyCertChainSupplier- anSupplierthat will provide an input stream for aX.509certificate chain inPEMformat.The responsibility to call
InputStream.close()is transferred to callers of theSupplier. If this is not the desired behavior then wrap theInputStreamand overrideInputStream.close().keySupplier- anSupplierthat will provide an input stream for a KCS#8 private key in PEM format.The responsibility to call
InputStream.close()is transferred to callers of theSupplier. If this is not the desired behavior then wrap theInputStreamand overrideInputStream.close().keyPassword- the password of thekeyInputStream.- Returns:
this.
-
-