Package io.servicetalk.transport.api
Interface ServerSecurityConfigurator
-
- All Superinterfaces:
SecurityConfigurator
- All Known Subinterfaces:
GrpcServerSecurityConfigurator,HttpServerSecurityConfigurator
@Deprecated public interface ServerSecurityConfigurator extends SecurityConfigurator
Deprecated.ASecurityConfiguratorcontract for servers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classServerSecurityConfigurator.ClientAuthDeprecated.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 ServerSecurityConfiguratorciphers(java.lang.Iterable<java.lang.String> ciphers)Deprecated.The cipher suites to enable, in the order of preference.ServerSecurityConfiguratorclientAuth(ServerSecurityConfigurator.ClientAuth clientAuth)Deprecated.Sets the client authentication mode.ServerSecurityConfiguratorprotocols(java.lang.String... protocols)Deprecated.The SSL protocols to enable, in the order of preference.ServerSecurityConfiguratorprovider(SecurityConfigurator.SslProvider provider)Deprecated.Sets theSecurityConfigurator.SslProviderto use.ServerSecurityConfiguratorsessionCacheSize(long sessionCacheSize)Deprecated.Set the size of the cache used for storing SSL session objects.ServerSecurityConfiguratorsessionTimeout(long sessionTimeout)Deprecated.Set the timeout for the cached SSL session objects, in seconds.ServerSecurityConfiguratortrustManager(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)Deprecated.Trusted certificates for verifying the remote endpoint's certificate.ServerSecurityConfiguratortrustManager(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: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
ServerSecurityConfigurator 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
ServerSecurityConfigurator 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
ServerSecurityConfigurator 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
ServerSecurityConfigurator 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
ServerSecurityConfigurator 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
ServerSecurityConfigurator provider(SecurityConfigurator.SslProvider provider)
Deprecated.Description copied from interface:SecurityConfiguratorSets theSecurityConfigurator.SslProviderto use.- Specified by:
providerin 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.
-
-