Class ServerSecurityConfig
- java.lang.Object
-
- io.servicetalk.transport.netty.internal.ReadOnlyServerSecurityConfig
-
- io.servicetalk.transport.netty.internal.ServerSecurityConfig
-
@Deprecated public class ServerSecurityConfig extends ReadOnlyServerSecurityConfig
Deprecated.UseServerSslConfig.Server security configuration.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.function.Supplier<java.io.InputStream>keyCertChainSupplierDeprecated.protected javax.net.ssl.KeyManagerFactorykeyManagerFactoryDeprecated.protected java.lang.StringkeyPasswordDeprecated.protected java.util.function.Supplier<java.io.InputStream>keySupplierDeprecated.-
Fields inherited from class io.servicetalk.transport.netty.internal.ReadOnlyServerSecurityConfig
clientAuth
-
-
Constructor Summary
Constructors Constructor Description ServerSecurityConfig()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ReadOnlyServerSecurityConfigasReadOnly()Deprecated.Returns this config as aReadOnlyServerSecurityConfig.ServerSslConfigasSslConfig()Deprecated.Build a newServerSslConfig.voidciphers(java.lang.Iterable<java.lang.String> ciphers)Deprecated.The cipher suites to enable, in the order of preference.voidclientAuth(ServerSecurityConfigurator.ClientAuth clientAuth)Deprecated.Sets the client authentication mode.voidkeyManager(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier)Deprecated.Identifying certificate for this host.voidkeyManager(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier, java.lang.String keyPassword)Deprecated.Identifying certificate for this host.voidkeyManager(javax.net.ssl.KeyManagerFactory keyManagerFactory)Deprecated.Identifying certificate for this host.voidprotocols(java.lang.String... protocols)Deprecated.The SSL protocols to enable, in the order of preference.voidprovider(SecurityConfigurator.SslProvider provider)Deprecated.Sets theSecurityConfigurator.SslProviderto use.voidsessionCacheSize(long sessionCacheSize)Deprecated.Set the size of the cache used for storing SSL session objects.voidsessionTimeout(long sessionTimeout)Deprecated.Set the timeout for the cached SSL session objects, in seconds.voidtrustManager(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)Deprecated.Trusted certificates for verifying the remote endpoint's certificate.voidtrustManager(javax.net.ssl.TrustManagerFactory trustManagerFactory)Deprecated.Trust manager for verifying the remote endpoint's certificate.-
Methods inherited from class io.servicetalk.transport.netty.internal.ReadOnlyServerSecurityConfig
clientAuth
-
-
-
-
Field Detail
-
keyManagerFactory
@Nullable protected javax.net.ssl.KeyManagerFactory keyManagerFactory
Deprecated.
-
keyCertChainSupplier
@Nullable protected java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier
Deprecated.
-
keySupplier
@Nullable protected java.util.function.Supplier<java.io.InputStream> keySupplier
Deprecated.
-
keyPassword
@Nullable protected java.lang.String keyPassword
Deprecated.
-
-
Method Detail
-
trustManager
public void 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.
-
trustManager
public void 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.
-
protocols
public void protocols(java.lang.String... protocols)
Deprecated.The SSL protocols to enable, in the order of preference.- Parameters:
protocols- the protocols to use.
-
ciphers
public void 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.
-
sessionCacheSize
public void sessionCacheSize(long sessionCacheSize)
Deprecated.Set the size of the cache used for storing SSL session objects.- Parameters:
sessionCacheSize- the cache size.
-
sessionTimeout
public void sessionTimeout(long sessionTimeout)
Deprecated.Set the timeout for the cached SSL session objects, in seconds.- Parameters:
sessionTimeout- the session timeout.
-
provider
public void provider(SecurityConfigurator.SslProvider provider)
Deprecated.Sets theSecurityConfigurator.SslProviderto use.- Parameters:
provider- the provider.
-
keyManager
public void keyManager(javax.net.ssl.KeyManagerFactory keyManagerFactory)
Deprecated.Identifying certificate for this host.keyManagerFactorymay benull, which disables mutual authentication. TheKeyManagerFactorywhich take preference over any configuredSupplier.- Parameters:
keyManagerFactory- anKeyManagerFactory.
-
keyManager
public void keyManager(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier)Deprecated.Identifying certificate for this host.keyCertChainInputStreamandkeyInputStreammay benull, which disables mutual authentication.- Parameters:
keyCertChainSupplier- aSupplierthat will provide an input stream for aX.509certificate chain inPEMformat.keySupplier- anSupplierthat will provide an input stream for a KCS#8 private key in PEM format.
-
keyManager
public void keyManager(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier, java.lang.String keyPassword)Deprecated.Identifying certificate for this host.keyCertChainInputStreamandkeyInputStreammay benull, which disables mutual authentication.- Parameters:
keyCertChainSupplier- anSupplierthat will provide an input stream for aX.509certificate chain inPEMformat.keySupplier- anSupplierthat will provide an input stream for a KCS#8 private key in PEM format.keyPassword- the password of thekeyInputStream.
-
clientAuth
public void clientAuth(ServerSecurityConfigurator.ClientAuth clientAuth)
Deprecated.Sets the client authentication mode.- Parameters:
clientAuth- the auth configuration to use.
-
asReadOnly
public ReadOnlyServerSecurityConfig asReadOnly()
Deprecated.Returns this config as aReadOnlyServerSecurityConfig.- Returns:
- This config as a
ReadOnlyServerSecurityConfig.
-
asSslConfig
public ServerSslConfig asSslConfig()
Deprecated.Build a newServerSslConfig.- Returns:
- a new
ServerSslConfig.
-
-