public interface GrpcServerSecurityConfigurator extends ServerSecurityConfigurator
ServerSecurityConfigurator.ClientAuthSecurityConfigurator.SslProvider| Modifier and Type | Method and Description |
|---|---|
GrpcServerSecurityConfigurator |
ciphers(java.lang.Iterable<java.lang.String> ciphers)
The cipher suites to enable, in the order of preference.
|
GrpcServerSecurityConfigurator |
clientAuth(ServerSecurityConfigurator.ClientAuth clientAuth)
Sets the client authentication mode.
|
GrpcServerBuilder |
commit(javax.net.ssl.KeyManagerFactory keyManagerFactory)
Commit configuring server security.
|
GrpcServerBuilder |
commit(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier,
java.util.function.Supplier<java.io.InputStream> keySupplier)
Commit configuring server security.
|
GrpcServerBuilder |
commit(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier,
java.util.function.Supplier<java.io.InputStream> keySupplier,
java.lang.String keyPassword)
Commit configuring server security.
|
GrpcServerSecurityConfigurator |
protocols(java.lang.String... protocols)
The SSL protocols to enable, in the order of preference.
|
GrpcServerSecurityConfigurator |
provider(SecurityConfigurator.SslProvider provider)
Sets the
SecurityConfigurator.SslProvider to use. |
GrpcServerSecurityConfigurator |
sessionCacheSize(long sessionCacheSize)
Set the size of the cache used for storing SSL session objects.
|
GrpcServerSecurityConfigurator |
sessionTimeout(long sessionTimeout)
Set the timeout for the cached SSL session objects, in seconds.
|
GrpcServerSecurityConfigurator |
trustManager(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)
Trusted certificates for verifying the remote endpoint's certificate.
|
GrpcServerSecurityConfigurator |
trustManager(javax.net.ssl.TrustManagerFactory trustManagerFactory)
Trust manager for verifying the remote endpoint's certificate.
|
GrpcServerSecurityConfigurator trustManager(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)
SecurityConfiguratorX.509 certificate chain in PEM format.trustManager in interface SecurityConfiguratortrustManager in interface ServerSecurityConfiguratortrustCertChainSupplier - a supplier for the certificate chain input stream.
The responsibility to call InputStream.close() is transferred to callers of the returned
Supplier. If this is not the desired behavior then wrap the InputStream and override
InputStream.close().
this.GrpcServerSecurityConfigurator trustManager(javax.net.ssl.TrustManagerFactory trustManagerFactory)
SecurityConfiguratorTrustManagerFactory which take preference over any configured Supplier.trustManager in interface SecurityConfiguratortrustManager in interface ServerSecurityConfiguratortrustManagerFactory - the TrustManagerFactory to use.this.GrpcServerSecurityConfigurator protocols(java.lang.String... protocols)
SecurityConfiguratorprotocols in interface SecurityConfiguratorprotocols in interface ServerSecurityConfiguratorprotocols - the protocols to use.this.SSLEngine.setEnabledProtocols(String[])GrpcServerSecurityConfigurator ciphers(java.lang.Iterable<java.lang.String> ciphers)
SecurityConfiguratorciphers in interface SecurityConfiguratorciphers in interface ServerSecurityConfiguratorciphers - the ciphers to use.this.GrpcServerSecurityConfigurator sessionCacheSize(long sessionCacheSize)
SecurityConfiguratorsessionCacheSize in interface SecurityConfiguratorsessionCacheSize in interface ServerSecurityConfiguratorsessionCacheSize - the cache size.this.GrpcServerSecurityConfigurator sessionTimeout(long sessionTimeout)
SecurityConfiguratorsessionTimeout in interface SecurityConfiguratorsessionTimeout in interface ServerSecurityConfiguratorsessionTimeout - the session timeout.this.GrpcServerSecurityConfigurator provider(SecurityConfigurator.SslProvider provider)
SecurityConfiguratorSecurityConfigurator.SslProvider to use.provider in interface SecurityConfiguratorprovider in interface ServerSecurityConfiguratorprovider - the provider.this.GrpcServerSecurityConfigurator clientAuth(ServerSecurityConfigurator.ClientAuth clientAuth)
ServerSecurityConfiguratorclientAuth in interface ServerSecurityConfiguratorclientAuth - the auth configuration to use.this.GrpcServerBuilder commit(javax.net.ssl.KeyManagerFactory keyManagerFactory)
keyManagerFactory - an KeyManagerFactory.GrpcServerBuilder that initiated the security configuration process.GrpcServerBuilder commit(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier)
keyCertChainSupplier - an Supplier that will provide an input stream for a X.509 certificate
chain in PEM format.
The responsibility to call InputStream.close() is transferred to callers of the Supplier.
If this is not the desired behavior then wrap the InputStream and override InputStream.close().
keySupplier - an Supplier that will provide an input stream for a KCS#8 private key in
PEM format.
The responsibility to call InputStream.close() is transferred to callers of the Supplier.
If this is not the desired behavior then wrap the InputStream and override InputStream.close().
GrpcServerBuilder that initiated the security configuration process.GrpcServerBuilder commit(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier, java.lang.String keyPassword)
keyCertChainSupplier - an Supplier that will provide an input stream for a X.509 certificate
chain in PEM format.
The responsibility to call InputStream.close() is transferred to callers of the Supplier.
If this is not the desired behavior then wrap the InputStream and override InputStream.close().
keySupplier - an Supplier that will provide an input stream for a KCS#8 private key in
PEM format.
The responsibility to call InputStream.close() is transferred to callers of the Supplier.
If this is not the desired behavior then wrap the InputStream and override InputStream.close().
keyPassword - the password of the keyFile.GrpcServerBuilder that initiated the security configuration process.