Package io.servicetalk.transport.api
Interface SecurityConfigurator
-
- All Known Subinterfaces:
ClientSecurityConfigurator,GrpcClientSecurityConfigurator<U,R>,GrpcServerSecurityConfigurator,HttpServerSecurityConfigurator,PartitionedHttpClientSecurityConfigurator<U,R>,ServerSecurityConfigurator,SingleAddressHttpClientSecurityConfigurator<U,R>
@Deprecated public interface SecurityConfiguratorDeprecated.An abstraction to configure SSL/TLS.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSecurityConfigurator.SslProviderDeprecated.UseSslProvider.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description SecurityConfiguratorciphers(java.lang.Iterable<java.lang.String> ciphers)Deprecated.The cipher suites to enable, in the order of preference.SecurityConfiguratorprotocols(java.lang.String... protocols)Deprecated.The SSL protocols to enable, in the order of preference.SecurityConfiguratorprovider(SecurityConfigurator.SslProvider provider)Deprecated.Sets theSecurityConfigurator.SslProviderto use.SecurityConfiguratorsessionCacheSize(long sessionCacheSize)Deprecated.Set the size of the cache used for storing SSL session objects.SecurityConfiguratorsessionTimeout(long sessionTimeout)Deprecated.Set the timeout for the cached SSL session objects, in seconds.SecurityConfiguratortrustManager(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)Deprecated.Trusted certificates for verifying the remote endpoint's certificate.SecurityConfiguratortrustManager(javax.net.ssl.TrustManagerFactory trustManagerFactory)Deprecated.Trust manager for verifying the remote endpoint's certificate.
-
-
-
Method Detail
-
trustManager
SecurityConfigurator trustManager(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)
Deprecated.Trusted certificates for verifying the remote endpoint's certificate. The input stream should contain anX.509certificate chain inPEMformat.- 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
SecurityConfigurator trustManager(javax.net.ssl.TrustManagerFactory trustManagerFactory)
Deprecated.Trust manager for verifying the remote endpoint's certificate. TheTrustManagerFactorywhich take preference over any configuredSupplier.- Parameters:
trustManagerFactory- theTrustManagerFactoryto use.- Returns:
this.
-
protocols
SecurityConfigurator protocols(java.lang.String... protocols)
Deprecated.The SSL protocols to enable, in the order of preference.- Parameters:
protocols- the protocols to use.- Returns:
this.- See Also:
SSLEngine.setEnabledProtocols(String[])
-
ciphers
SecurityConfigurator ciphers(java.lang.Iterable<java.lang.String> ciphers)
Deprecated.The cipher suites to enable, in the order of preference.- Parameters:
ciphers- the ciphers to use.- Returns:
this.
-
sessionCacheSize
SecurityConfigurator sessionCacheSize(long sessionCacheSize)
Deprecated.Set the size of the cache used for storing SSL session objects.- Parameters:
sessionCacheSize- the cache size.- Returns:
this.
-
sessionTimeout
SecurityConfigurator sessionTimeout(long sessionTimeout)
Deprecated.Set the timeout for the cached SSL session objects, in seconds.- Parameters:
sessionTimeout- the session timeout.- Returns:
this.
-
provider
SecurityConfigurator provider(SecurityConfigurator.SslProvider provider)
Deprecated.Sets theSecurityConfigurator.SslProviderto use.- Parameters:
provider- the provider.- Returns:
this.
-
-