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 SecurityConfigurator
Deprecated.An abstraction to configure SSL/TLS.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SecurityConfigurator.SslProvider
Deprecated.UseSslProvider
.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description SecurityConfigurator
ciphers(java.lang.Iterable<java.lang.String> ciphers)
Deprecated.The cipher suites to enable, in the order of preference.SecurityConfigurator
protocols(java.lang.String... protocols)
Deprecated.The SSL protocols to enable, in the order of preference.SecurityConfigurator
provider(SecurityConfigurator.SslProvider provider)
Deprecated.Sets theSecurityConfigurator.SslProvider
to use.SecurityConfigurator
sessionCacheSize(long sessionCacheSize)
Deprecated.Set the size of the cache used for storing SSL session objects.SecurityConfigurator
sessionTimeout(long sessionTimeout)
Deprecated.Set the timeout for the cached SSL session objects, in seconds.SecurityConfigurator
trustManager(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)
Deprecated.Trusted certificates for verifying the remote endpoint's certificate.SecurityConfigurator
trustManager(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.509
certificate chain inPEM
format.- 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
SecurityConfigurator trustManager(javax.net.ssl.TrustManagerFactory trustManagerFactory)
Deprecated.Trust manager for verifying the remote endpoint's certificate. TheTrustManagerFactory
which take preference over any configuredSupplier
.- Parameters:
trustManagerFactory
- theTrustManagerFactory
to 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.SslProvider
to use.- Parameters:
provider
- the provider.- Returns:
this
.
-
-