Interface SingleAddressHttpClientSecurityConfigurator<U,R>
-
- Type Parameters:
U
- the type of address before resolution (unresolved address)R
- the type of address after resolution (resolved address)
- All Superinterfaces:
ClientSecurityConfigurator
,SecurityConfigurator
@Deprecated public interface SingleAddressHttpClientSecurityConfigurator<U,R> extends ClientSecurityConfigurator
Deprecated.
-
-
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 SingleAddressHttpClientSecurityConfigurator<U,R>
ciphers(java.lang.Iterable<java.lang.String> ciphers)
Deprecated.The cipher suites to enable, in the order of preference.SingleAddressHttpClientBuilder<U,R>
commit()
Deprecated.Commit configuring client security.SingleAddressHttpClientSecurityConfigurator<U,R>
disableHostnameVerification()
Deprecated.Disable verification of the server identity.SingleAddressHttpClientSecurityConfigurator<U,R>
hostnameVerification(java.lang.String hostNameVerificationHost)
Deprecated.Set the host name used to verify the server identity.SingleAddressHttpClientSecurityConfigurator<U,R>
hostnameVerification(java.lang.String hostNameVerificationHost, int hostNameVerificationPort)
Deprecated.Set the host name and port used to verify the server identity.SingleAddressHttpClientSecurityConfigurator<U,R>
hostnameVerification(java.lang.String hostNameVerificationAlgorithm, java.lang.String hostNameVerificationHost)
Deprecated.Determines what algorithm to use for hostname verification.SingleAddressHttpClientSecurityConfigurator<U,R>
hostnameVerification(java.lang.String hostNameVerificationAlgorithm, java.lang.String hostNameVerificationHost, int hostNameVerificationPort)
Deprecated.Determines what algorithm to use for hostname verification.SingleAddressHttpClientSecurityConfigurator<U,R>
hostnameVerificationAlgorithm(java.lang.String hostNameVerificationAlgorithm)
Deprecated.Determines what algorithm to use for hostname verification.SingleAddressHttpClientSecurityConfigurator<U,R>
keyManager(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier)
Deprecated.Identifying certificate for this host.SingleAddressHttpClientSecurityConfigurator<U,R>
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.SingleAddressHttpClientSecurityConfigurator<U,R>
keyManager(javax.net.ssl.KeyManagerFactory keyManagerFactory)
Deprecated.Identifying certificate for this host.SingleAddressHttpClientSecurityConfigurator<U,R>
protocols(java.lang.String... protocols)
Deprecated.The SSL protocols to enable, in the order of preference.SingleAddressHttpClientSecurityConfigurator<U,R>
provider(SecurityConfigurator.SslProvider provider)
Deprecated.Sets theSecurityConfigurator.SslProvider
to use.SingleAddressHttpClientSecurityConfigurator<U,R>
sessionCacheSize(long sessionCacheSize)
Deprecated.Set the size of the cache used for storing SSL session objects.SingleAddressHttpClientSecurityConfigurator<U,R>
sessionTimeout(long sessionTimeout)
Deprecated.Set the timeout for the cached SSL session objects, in seconds.SingleAddressHttpClientSecurityConfigurator<U,R>
sniHostname(java.lang.String sniHostname)
Deprecated.Set the SNI host name.SingleAddressHttpClientSecurityConfigurator<U,R>
trustManager(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)
Deprecated.Trusted certificates for verifying the remote endpoint's certificate.SingleAddressHttpClientSecurityConfigurator<U,R>
trustManager(javax.net.ssl.TrustManagerFactory trustManagerFactory)
Deprecated.Trust manager for verifying the remote endpoint's certificate.
-
-
-
Method Detail
-
commit
SingleAddressHttpClientBuilder<U,R> commit()
Deprecated.Commit configuring client security.- Returns:
- Original
HttpServerBuilder
that initiated the security configuration process.
-
trustManager
SingleAddressHttpClientSecurityConfigurator<U,R> trustManager(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)
Deprecated.Description copied from interface:SecurityConfigurator
Trusted certificates for verifying the remote endpoint's certificate. The input stream should contain anX.509
certificate chain inPEM
format.- Specified by:
trustManager
in interfaceClientSecurityConfigurator
- Specified by:
trustManager
in 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 theInputStream
and overrideInputStream.close()
.- Returns:
this
.
-
trustManager
SingleAddressHttpClientSecurityConfigurator<U,R> trustManager(javax.net.ssl.TrustManagerFactory trustManagerFactory)
Deprecated.Description copied from interface:SecurityConfigurator
Trust manager for verifying the remote endpoint's certificate. TheTrustManagerFactory
which take preference over any configuredSupplier
.- Specified by:
trustManager
in interfaceClientSecurityConfigurator
- Specified by:
trustManager
in interfaceSecurityConfigurator
- Parameters:
trustManagerFactory
- theTrustManagerFactory
to use.- Returns:
this
.
-
protocols
SingleAddressHttpClientSecurityConfigurator<U,R> protocols(java.lang.String... protocols)
Deprecated.Description copied from interface:SecurityConfigurator
The SSL protocols to enable, in the order of preference.- Specified by:
protocols
in interfaceClientSecurityConfigurator
- Specified by:
protocols
in interfaceSecurityConfigurator
- Parameters:
protocols
- the protocols to use.- Returns:
this
.- See Also:
SSLEngine.setEnabledProtocols(String[])
-
ciphers
SingleAddressHttpClientSecurityConfigurator<U,R> ciphers(java.lang.Iterable<java.lang.String> ciphers)
Deprecated.Description copied from interface:SecurityConfigurator
The cipher suites to enable, in the order of preference.- Specified by:
ciphers
in interfaceClientSecurityConfigurator
- Specified by:
ciphers
in interfaceSecurityConfigurator
- Parameters:
ciphers
- the ciphers to use.- Returns:
this
.
-
sessionCacheSize
SingleAddressHttpClientSecurityConfigurator<U,R> sessionCacheSize(long sessionCacheSize)
Deprecated.Description copied from interface:SecurityConfigurator
Set the size of the cache used for storing SSL session objects.- Specified by:
sessionCacheSize
in interfaceClientSecurityConfigurator
- Specified by:
sessionCacheSize
in interfaceSecurityConfigurator
- Parameters:
sessionCacheSize
- the cache size.- Returns:
this
.
-
sessionTimeout
SingleAddressHttpClientSecurityConfigurator<U,R> sessionTimeout(long sessionTimeout)
Deprecated.Description copied from interface:SecurityConfigurator
Set the timeout for the cached SSL session objects, in seconds.- Specified by:
sessionTimeout
in interfaceClientSecurityConfigurator
- Specified by:
sessionTimeout
in interfaceSecurityConfigurator
- Parameters:
sessionTimeout
- the session timeout.- Returns:
this
.
-
provider
SingleAddressHttpClientSecurityConfigurator<U,R> provider(SecurityConfigurator.SslProvider provider)
Deprecated.Description copied from interface:SecurityConfigurator
Sets theSecurityConfigurator.SslProvider
to use.- Specified by:
provider
in interfaceClientSecurityConfigurator
- Specified by:
provider
in interfaceSecurityConfigurator
- Parameters:
provider
- the provider.- Returns:
this
.
-
hostnameVerificationAlgorithm
SingleAddressHttpClientSecurityConfigurator<U,R> hostnameVerificationAlgorithm(java.lang.String hostNameVerificationAlgorithm)
Deprecated.Description copied from interface:ClientSecurityConfigurator
Determines what algorithm to use for hostname verification.- Specified by:
hostnameVerificationAlgorithm
in interfaceClientSecurityConfigurator
- Parameters:
hostNameVerificationAlgorithm
- The algorithm to use when verifying the host name. See Supported algorithm names.- Returns:
this
.- See Also:
SSLParameters.setEndpointIdentificationAlgorithm(String)
-
hostnameVerification
SingleAddressHttpClientSecurityConfigurator<U,R> hostnameVerification(java.lang.String hostNameVerificationAlgorithm, java.lang.String hostNameVerificationHost)
Deprecated.Description copied from interface:ClientSecurityConfigurator
Determines what algorithm to use for hostname verification.- Specified by:
hostnameVerification
in interfaceClientSecurityConfigurator
- 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
SingleAddressHttpClientSecurityConfigurator<U,R> hostnameVerification(java.lang.String hostNameVerificationAlgorithm, java.lang.String hostNameVerificationHost, int hostNameVerificationPort)
Deprecated.Description copied from interface:ClientSecurityConfigurator
Determines what algorithm to use for hostname verification.- Specified by:
hostnameVerification
in interfaceClientSecurityConfigurator
- 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
SingleAddressHttpClientSecurityConfigurator<U,R> hostnameVerification(java.lang.String hostNameVerificationHost)
Deprecated.Description copied from interface:ClientSecurityConfigurator
Set the host name used to verify the server identity.- Specified by:
hostnameVerification
in interfaceClientSecurityConfigurator
- Parameters:
hostNameVerificationHost
- the host name used to verify the server identity.- Returns:
this
.
-
hostnameVerification
SingleAddressHttpClientSecurityConfigurator<U,R> hostnameVerification(java.lang.String hostNameVerificationHost, int hostNameVerificationPort)
Deprecated.Description copied from interface:ClientSecurityConfigurator
Set the host name and port used to verify the server identity.- Specified by:
hostnameVerification
in interfaceClientSecurityConfigurator
- 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
SingleAddressHttpClientSecurityConfigurator<U,R> sniHostname(java.lang.String sniHostname)
Deprecated.Description copied from interface:ClientSecurityConfigurator
Set the SNI host name.- Specified by:
sniHostname
in interfaceClientSecurityConfigurator
- Parameters:
sniHostname
- The SNI host name.- Returns:
this
.
-
disableHostnameVerification
SingleAddressHttpClientSecurityConfigurator<U,R> disableHostnameVerification()
Deprecated.Description copied from interface:ClientSecurityConfigurator
Disable verification of the server identity.- Specified by:
disableHostnameVerification
in interfaceClientSecurityConfigurator
- Returns:
this
.
-
keyManager
SingleAddressHttpClientSecurityConfigurator<U,R> keyManager(javax.net.ssl.KeyManagerFactory keyManagerFactory)
Deprecated.Description copied from interface:ClientSecurityConfigurator
Identifying certificate for this host.keyManagerFactory
may benull
, which disables mutual authentication. TheKeyManagerFactory
which take preference over any configuredSupplier
.- Specified by:
keyManager
in interfaceClientSecurityConfigurator
- Parameters:
keyManagerFactory
- anKeyManagerFactory
.- Returns:
this
.
-
keyManager
SingleAddressHttpClientSecurityConfigurator<U,R> keyManager(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier)
Deprecated.Description copied from interface:ClientSecurityConfigurator
Identifying certificate for this host.keyCertChainInputStream
andkeyInputStream
may benull
, which disables mutual authentication.- Specified by:
keyManager
in interfaceClientSecurityConfigurator
- Parameters:
keyCertChainSupplier
- aSupplier
that will provide an input stream for aX.509
certificate chain inPEM
format.The responsibility to call
InputStream.close()
is transferred to callers of theSupplier
. If this is not the desired behavior then wrap theInputStream
and overrideInputStream.close()
.keySupplier
- anSupplier
that 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 theInputStream
and overrideInputStream.close()
.- Returns:
this
.
-
keyManager
SingleAddressHttpClientSecurityConfigurator<U,R> keyManager(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier, java.lang.String keyPassword)
Deprecated.Description copied from interface:ClientSecurityConfigurator
Identifying certificate for this host.keyCertChainInputStream
andkeyInputStream
may benull
, which disables mutual authentication.- Specified by:
keyManager
in interfaceClientSecurityConfigurator
- Parameters:
keyCertChainSupplier
- anSupplier
that will provide an input stream for aX.509
certificate chain inPEM
format.The responsibility to call
InputStream.close()
is transferred to callers of theSupplier
. If this is not the desired behavior then wrap theInputStream
and overrideInputStream.close()
.keySupplier
- anSupplier
that 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 theInputStream
and overrideInputStream.close()
.keyPassword
- the password of thekeyInputStream
.- Returns:
this
.
-
-