public interface GrpcServerSecurityConfigurator
extends ServerSecurityConfigurator
ServerSecurityConfigurator for GrpcServerBuilder.| Modifier and Type | Method and Description |
|---|---|
GrpcServerSecurityConfigurator |
ciphers(Iterable<String> ciphers) |
GrpcServerSecurityConfigurator |
clientAuth(ServerSecurityConfigurator.ClientAuth clientAuth) |
GrpcServerBuilder |
commit(KeyManagerFactory keyManagerFactory)
Commit configuring server security.
|
GrpcServerBuilder |
commit(Supplier<InputStream> keyCertChainSupplier,
Supplier<InputStream> keySupplier)
Commit configuring server security.
|
GrpcServerBuilder |
commit(Supplier<InputStream> keyCertChainSupplier,
Supplier<InputStream> keySupplier,
String keyPassword)
Commit configuring server security.
|
GrpcServerSecurityConfigurator |
protocols(String... protocols) |
GrpcServerSecurityConfigurator |
provider(SecurityConfigurator.SslProvider provider) |
GrpcServerSecurityConfigurator |
sessionCacheSize(long sessionCacheSize) |
GrpcServerSecurityConfigurator |
sessionTimeout(long sessionTimeout) |
GrpcServerSecurityConfigurator |
trustManager(Supplier<InputStream> trustCertChainSupplier) |
GrpcServerSecurityConfigurator |
trustManager(TrustManagerFactory trustManagerFactory) |
GrpcServerSecurityConfigurator trustManager(Supplier<InputStream> trustCertChainSupplier)
trustManager in interface SecurityConfiguratortrustManager in interface ServerSecurityConfiguratorGrpcServerSecurityConfigurator trustManager(TrustManagerFactory trustManagerFactory)
trustManager in interface SecurityConfiguratortrustManager in interface ServerSecurityConfiguratorGrpcServerSecurityConfigurator protocols(String... protocols)
protocols in interface SecurityConfiguratorprotocols in interface ServerSecurityConfiguratorGrpcServerSecurityConfigurator ciphers(Iterable<String> ciphers)
ciphers in interface SecurityConfiguratorciphers in interface ServerSecurityConfiguratorGrpcServerSecurityConfigurator sessionCacheSize(long sessionCacheSize)
sessionCacheSize in interface SecurityConfiguratorsessionCacheSize in interface ServerSecurityConfiguratorGrpcServerSecurityConfigurator sessionTimeout(long sessionTimeout)
sessionTimeout in interface SecurityConfiguratorsessionTimeout in interface ServerSecurityConfiguratorGrpcServerSecurityConfigurator provider(SecurityConfigurator.SslProvider provider)
provider in interface SecurityConfiguratorprovider in interface ServerSecurityConfiguratorGrpcServerSecurityConfigurator clientAuth(ServerSecurityConfigurator.ClientAuth clientAuth)
clientAuth in interface ServerSecurityConfiguratorGrpcServerBuilder commit(KeyManagerFactory keyManagerFactory)
keyManagerFactory - an KeyManagerFactory.GrpcServerBuilder that initiated the security configuration process.GrpcServerBuilder commit(Supplier<InputStream> keyCertChainSupplier, Supplier<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(Supplier<InputStream> keyCertChainSupplier, Supplier<InputStream> keySupplier, 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.