Interface GrpcServerSecurityConfigurator
-
- All Superinterfaces:
SecurityConfigurator,ServerSecurityConfigurator
@Deprecated public interface GrpcServerSecurityConfigurator extends ServerSecurityConfigurator
Deprecated.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.servicetalk.transport.api.SecurityConfigurator
SecurityConfigurator.SslProvider
-
Nested classes/interfaces inherited from interface io.servicetalk.transport.api.ServerSecurityConfigurator
ServerSecurityConfigurator.ClientAuth
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description GrpcServerSecurityConfiguratorciphers(java.lang.Iterable<java.lang.String> ciphers)Deprecated.The cipher suites to enable, in the order of preference.GrpcServerSecurityConfiguratorclientAuth(ServerSecurityConfigurator.ClientAuth clientAuth)Deprecated.Sets the client authentication mode.GrpcServerBuildercommit(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier)Deprecated.Commit configuring server security.GrpcServerBuildercommit(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier, java.lang.String keyPassword)Deprecated.Commit configuring server security.GrpcServerBuildercommit(javax.net.ssl.KeyManagerFactory keyManagerFactory)Deprecated.Commit configuring server security.GrpcServerSecurityConfiguratorprotocols(java.lang.String... protocols)Deprecated.The SSL protocols to enable, in the order of preference.GrpcServerSecurityConfiguratorprovider(SecurityConfigurator.SslProvider provider)Deprecated.Sets theSecurityConfigurator.SslProviderto use.GrpcServerSecurityConfiguratorsessionCacheSize(long sessionCacheSize)Deprecated.Set the size of the cache used for storing SSL session objects.GrpcServerSecurityConfiguratorsessionTimeout(long sessionTimeout)Deprecated.Set the timeout for the cached SSL session objects, in seconds.GrpcServerSecurityConfiguratortrustManager(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)Deprecated.Trusted certificates for verifying the remote endpoint's certificate.GrpcServerSecurityConfiguratortrustManager(javax.net.ssl.TrustManagerFactory trustManagerFactory)Deprecated.Trust manager for verifying the remote endpoint's certificate.
-
-
-
Method Detail
-
trustManager
GrpcServerSecurityConfigurator 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- Specified by:
trustManagerin interfaceServerSecurityConfigurator- 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
GrpcServerSecurityConfigurator 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- Specified by:
trustManagerin interfaceServerSecurityConfigurator- Parameters:
trustManagerFactory- theTrustManagerFactoryto use.- Returns:
this.
-
protocols
GrpcServerSecurityConfigurator protocols(java.lang.String... protocols)
Deprecated.Description copied from interface:SecurityConfiguratorThe SSL protocols to enable, in the order of preference.- Specified by:
protocolsin interfaceSecurityConfigurator- Specified by:
protocolsin interfaceServerSecurityConfigurator- Parameters:
protocols- the protocols to use.- Returns:
this.- See Also:
SSLEngine.setEnabledProtocols(String[])
-
ciphers
GrpcServerSecurityConfigurator 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- Specified by:
ciphersin interfaceServerSecurityConfigurator- Parameters:
ciphers- the ciphers to use.- Returns:
this.
-
sessionCacheSize
GrpcServerSecurityConfigurator sessionCacheSize(long sessionCacheSize)
Deprecated.Description copied from interface:SecurityConfiguratorSet the size of the cache used for storing SSL session objects.- Specified by:
sessionCacheSizein interfaceSecurityConfigurator- Specified by:
sessionCacheSizein interfaceServerSecurityConfigurator- Parameters:
sessionCacheSize- the cache size.- Returns:
this.
-
sessionTimeout
GrpcServerSecurityConfigurator sessionTimeout(long sessionTimeout)
Deprecated.Description copied from interface:SecurityConfiguratorSet the timeout for the cached SSL session objects, in seconds.- Specified by:
sessionTimeoutin interfaceSecurityConfigurator- Specified by:
sessionTimeoutin interfaceServerSecurityConfigurator- Parameters:
sessionTimeout- the session timeout.- Returns:
this.
-
provider
GrpcServerSecurityConfigurator provider(SecurityConfigurator.SslProvider provider)
Deprecated.Description copied from interface:SecurityConfiguratorSets theSecurityConfigurator.SslProviderto use.- Specified by:
providerin interfaceSecurityConfigurator- Specified by:
providerin interfaceServerSecurityConfigurator- Parameters:
provider- the provider.- Returns:
this.
-
clientAuth
GrpcServerSecurityConfigurator clientAuth(ServerSecurityConfigurator.ClientAuth clientAuth)
Deprecated.Description copied from interface:ServerSecurityConfiguratorSets the client authentication mode.- Specified by:
clientAuthin interfaceServerSecurityConfigurator- Parameters:
clientAuth- the auth configuration to use.- Returns:
this.
-
commit
GrpcServerBuilder commit(javax.net.ssl.KeyManagerFactory keyManagerFactory)
Deprecated.Commit configuring server security.- Parameters:
keyManagerFactory- anKeyManagerFactory.- Returns:
- Original
GrpcServerBuilderthat initiated the security configuration process.
-
commit
GrpcServerBuilder commit(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier)
Deprecated.Commit configuring server security.- Parameters:
keyCertChainSupplier- anSupplierthat will provide an input stream for aX.509certificate chain inPEMformat.The responsibility to call
InputStream.close()is transferred to callers of theSupplier. If this is not the desired behavior then wrap theInputStreamand overrideInputStream.close().keySupplier- anSupplierthat will provide an input stream for aKCS#8private key inPEMformat.The responsibility to call
InputStream.close()is transferred to callers of theSupplier. If this is not the desired behavior then wrap theInputStreamand overrideInputStream.close().- Returns:
- Original
GrpcServerBuilderthat initiated the security configuration process.
-
commit
GrpcServerBuilder commit(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier, java.lang.String keyPassword)
Deprecated.Commit configuring server security.- Parameters:
keyCertChainSupplier- anSupplierthat will provide an input stream for aX.509certificate chain inPEMformat.The responsibility to call
InputStream.close()is transferred to callers of theSupplier. If this is not the desired behavior then wrap theInputStreamand overrideInputStream.close().keySupplier- anSupplierthat will provide an input stream for aKCS#8private key inPEMformat.The responsibility to call
InputStream.close()is transferred to callers of theSupplier. If this is not the desired behavior then wrap theInputStreamand overrideInputStream.close().keyPassword- the password of thekeyFile.- Returns:
- Original
GrpcServerBuilderthat initiated the security configuration process.
-
-