Package io.servicetalk.transport.api
Interface ServerSecurityConfigurator
-
- All Superinterfaces:
SecurityConfigurator
- All Known Subinterfaces:
GrpcServerSecurityConfigurator
,HttpServerSecurityConfigurator
@Deprecated public interface ServerSecurityConfigurator extends SecurityConfigurator
Deprecated.ASecurityConfigurator
contract for servers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ServerSecurityConfigurator.ClientAuth
Deprecated.UseSslClientAuthMode
.-
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 ServerSecurityConfigurator
ciphers(java.lang.Iterable<java.lang.String> ciphers)
Deprecated.The cipher suites to enable, in the order of preference.ServerSecurityConfigurator
clientAuth(ServerSecurityConfigurator.ClientAuth clientAuth)
Deprecated.Sets the client authentication mode.ServerSecurityConfigurator
protocols(java.lang.String... protocols)
Deprecated.The SSL protocols to enable, in the order of preference.ServerSecurityConfigurator
provider(SecurityConfigurator.SslProvider provider)
Deprecated.Sets theSecurityConfigurator.SslProvider
to use.ServerSecurityConfigurator
sessionCacheSize(long sessionCacheSize)
Deprecated.Set the size of the cache used for storing SSL session objects.ServerSecurityConfigurator
sessionTimeout(long sessionTimeout)
Deprecated.Set the timeout for the cached SSL session objects, in seconds.ServerSecurityConfigurator
trustManager(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)
Deprecated.Trusted certificates for verifying the remote endpoint's certificate.ServerSecurityConfigurator
trustManager(javax.net.ssl.TrustManagerFactory trustManagerFactory)
Deprecated.Trust manager for verifying the remote endpoint's certificate.
-
-
-
Method Detail
-
trustManager
ServerSecurityConfigurator 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
- 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
ServerSecurityConfigurator 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
- Parameters:
trustManagerFactory
- theTrustManagerFactory
to use.- Returns:
this
.
-
protocols
ServerSecurityConfigurator 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
- Parameters:
protocols
- the protocols to use.- Returns:
this
.- See Also:
SSLEngine.setEnabledProtocols(String[])
-
ciphers
ServerSecurityConfigurator 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
- Parameters:
ciphers
- the ciphers to use.- Returns:
this
.
-
sessionCacheSize
ServerSecurityConfigurator 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
- Parameters:
sessionCacheSize
- the cache size.- Returns:
this
.
-
sessionTimeout
ServerSecurityConfigurator 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
- Parameters:
sessionTimeout
- the session timeout.- Returns:
this
.
-
provider
ServerSecurityConfigurator provider(SecurityConfigurator.SslProvider provider)
Deprecated.Description copied from interface:SecurityConfigurator
Sets theSecurityConfigurator.SslProvider
to use.- Specified by:
provider
in interfaceSecurityConfigurator
- Parameters:
provider
- the provider.- Returns:
this
.
-
clientAuth
ServerSecurityConfigurator clientAuth(ServerSecurityConfigurator.ClientAuth clientAuth)
Deprecated.Sets the client authentication mode.- Parameters:
clientAuth
- the auth configuration to use.- Returns:
this
.
-
-