public interface ServerSecurityConfigurator extends SecurityConfigurator
SecurityConfigurator contract for servers.| Modifier and Type | Interface and Description |
|---|---|
static class |
ServerSecurityConfigurator.ClientAuth
Indicates the state of the
SSLEngine with respect to client authentication. |
SecurityConfigurator.SslProvider| Modifier and Type | Method and Description |
|---|---|
ServerSecurityConfigurator |
ciphers(java.lang.Iterable<java.lang.String> ciphers)
The cipher suites to enable, in the order of preference.
|
ServerSecurityConfigurator |
clientAuth(ServerSecurityConfigurator.ClientAuth clientAuth)
Sets the client authentication mode.
|
ServerSecurityConfigurator |
protocols(java.lang.String... protocols)
The SSL protocols to enable, in the order of preference.
|
ServerSecurityConfigurator |
provider(SecurityConfigurator.SslProvider provider)
Sets the
SecurityConfigurator.SslProvider to use. |
ServerSecurityConfigurator |
sessionCacheSize(long sessionCacheSize)
Set the size of the cache used for storing SSL session objects.
|
ServerSecurityConfigurator |
sessionTimeout(long sessionTimeout)
Set the timeout for the cached SSL session objects, in seconds.
|
ServerSecurityConfigurator |
trustManager(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)
Trusted certificates for verifying the remote endpoint's certificate.
|
ServerSecurityConfigurator |
trustManager(javax.net.ssl.TrustManagerFactory trustManagerFactory)
Trust manager for verifying the remote endpoint's certificate.
|
ServerSecurityConfigurator trustManager(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)
SecurityConfiguratorX.509 certificate chain in PEM format.trustManager in interface SecurityConfiguratortrustCertChainSupplier - 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.ServerSecurityConfigurator trustManager(javax.net.ssl.TrustManagerFactory trustManagerFactory)
SecurityConfiguratorTrustManagerFactory which take preference over any configured Supplier.trustManager in interface SecurityConfiguratortrustManagerFactory - the TrustManagerFactory to use.this.ServerSecurityConfigurator protocols(java.lang.String... protocols)
SecurityConfiguratorprotocols in interface SecurityConfiguratorprotocols - the protocols to use.this.SSLEngine.setEnabledProtocols(String[])ServerSecurityConfigurator ciphers(java.lang.Iterable<java.lang.String> ciphers)
SecurityConfiguratorciphers in interface SecurityConfiguratorciphers - the ciphers to use.this.ServerSecurityConfigurator sessionCacheSize(long sessionCacheSize)
SecurityConfiguratorsessionCacheSize in interface SecurityConfiguratorsessionCacheSize - the cache size.this.ServerSecurityConfigurator sessionTimeout(long sessionTimeout)
SecurityConfiguratorsessionTimeout in interface SecurityConfiguratorsessionTimeout - the session timeout.this.ServerSecurityConfigurator provider(SecurityConfigurator.SslProvider provider)
SecurityConfiguratorSecurityConfigurator.SslProvider to use.provider in interface SecurityConfiguratorprovider - the provider.this.ServerSecurityConfigurator clientAuth(ServerSecurityConfigurator.ClientAuth clientAuth)
clientAuth - the auth configuration to use.this.