Interface HttpServerSecurityConfigurator
-
- All Superinterfaces:
SecurityConfigurator
,ServerSecurityConfigurator
@Deprecated public interface HttpServerSecurityConfigurator extends ServerSecurityConfigurator
Deprecated.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.servicetalk.transport.api.SecurityConfigurator
SecurityConfigurator.SslProvider
-
Nested classes/interfaces inherited from interface io.servicetalk.transport.api.ServerSecurityConfigurator
ServerSecurityConfigurator.ClientAuth
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description HttpServerSecurityConfigurator
ciphers(java.lang.Iterable<java.lang.String> ciphers)
Deprecated.The cipher suites to enable, in the order of preference.HttpServerSecurityConfigurator
clientAuth(ServerSecurityConfigurator.ClientAuth clientAuth)
Deprecated.Sets the client authentication mode.HttpServerBuilder
commit(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier)
Deprecated.Commit configuring server security.HttpServerBuilder
commit(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier, java.lang.String keyPassword)
Deprecated.Commit configuring server security.HttpServerBuilder
commit(javax.net.ssl.KeyManagerFactory keyManagerFactory)
Deprecated.Commit configuring server security.HttpServerSecurityConfigurator
protocols(java.lang.String... protocols)
Deprecated.The SSL protocols to enable, in the order of preference.HttpServerSecurityConfigurator
provider(SecurityConfigurator.SslProvider provider)
Deprecated.Sets theSecurityConfigurator.SslProvider
to use.HttpServerSecurityConfigurator
sessionCacheSize(long sessionCacheSize)
Deprecated.Set the size of the cache used for storing SSL session objects.HttpServerSecurityConfigurator
sessionTimeout(long sessionTimeout)
Deprecated.Set the timeout for the cached SSL session objects, in seconds.HttpServerSecurityConfigurator
trustManager(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)
Deprecated.Trusted certificates for verifying the remote endpoint's certificate.HttpServerSecurityConfigurator
trustManager(javax.net.ssl.TrustManagerFactory trustManagerFactory)
Deprecated.Trust manager for verifying the remote endpoint's certificate.
-
-
-
Method Detail
-
trustManager
HttpServerSecurityConfigurator 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 interfaceSecurityConfigurator
- Specified by:
trustManager
in interfaceServerSecurityConfigurator
- 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
HttpServerSecurityConfigurator 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 interfaceSecurityConfigurator
- Specified by:
trustManager
in interfaceServerSecurityConfigurator
- Parameters:
trustManagerFactory
- theTrustManagerFactory
to use.- Returns:
this
.
-
protocols
HttpServerSecurityConfigurator 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 interfaceSecurityConfigurator
- Specified by:
protocols
in interfaceServerSecurityConfigurator
- Parameters:
protocols
- the protocols to use.- Returns:
this
.- See Also:
SSLEngine.setEnabledProtocols(String[])
-
ciphers
HttpServerSecurityConfigurator 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 interfaceSecurityConfigurator
- Specified by:
ciphers
in interfaceServerSecurityConfigurator
- Parameters:
ciphers
- the ciphers to use.- Returns:
this
.
-
sessionCacheSize
HttpServerSecurityConfigurator 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 interfaceSecurityConfigurator
- Specified by:
sessionCacheSize
in interfaceServerSecurityConfigurator
- Parameters:
sessionCacheSize
- the cache size.- Returns:
this
.
-
sessionTimeout
HttpServerSecurityConfigurator sessionTimeout(long sessionTimeout)
Deprecated.Description copied from interface:SecurityConfigurator
Set the timeout for the cached SSL session objects, in seconds.- Specified by:
sessionTimeout
in interfaceSecurityConfigurator
- Specified by:
sessionTimeout
in interfaceServerSecurityConfigurator
- Parameters:
sessionTimeout
- the session timeout.- Returns:
this
.
-
provider
HttpServerSecurityConfigurator provider(SecurityConfigurator.SslProvider provider)
Deprecated.Description copied from interface:SecurityConfigurator
Sets theSecurityConfigurator.SslProvider
to use.- Specified by:
provider
in interfaceSecurityConfigurator
- Specified by:
provider
in interfaceServerSecurityConfigurator
- Parameters:
provider
- the provider.- Returns:
this
.
-
clientAuth
HttpServerSecurityConfigurator clientAuth(ServerSecurityConfigurator.ClientAuth clientAuth)
Deprecated.Description copied from interface:ServerSecurityConfigurator
Sets the client authentication mode.- Specified by:
clientAuth
in interfaceServerSecurityConfigurator
- Parameters:
clientAuth
- the auth configuration to use.- Returns:
this
.
-
commit
HttpServerBuilder commit(javax.net.ssl.KeyManagerFactory keyManagerFactory)
Deprecated.Commit configuring server security.- Parameters:
keyManagerFactory
- anKeyManagerFactory
.- Returns:
- Original
HttpServerBuilder
that initiated the security configuration process.
-
commit
HttpServerBuilder commit(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier)
Deprecated.Commit configuring server security.- 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 aKCS#8
private key 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()
.- Returns:
- Original
HttpServerBuilder
that initiated the security configuration process.
-
commit
HttpServerBuilder commit(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier, java.lang.String keyPassword)
Deprecated.Commit configuring server security.- 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 aKCS#8
private key 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()
.keyPassword
- the password of thekeyFile
.- Returns:
- Original
HttpServerBuilder
that initiated the security configuration process.
-
-