public interface SecurityConfigurator
| Modifier and Type | Interface and Description |
|---|---|
static class |
SecurityConfigurator.SslProvider
The provider to use for
SSLEngine. |
| Modifier and Type | Method and Description |
|---|---|
SecurityConfigurator |
ciphers(java.lang.Iterable<java.lang.String> ciphers)
The cipher suites to enable, in the order of preference.
|
SecurityConfigurator |
protocols(java.lang.String... protocols)
The SSL protocols to enable, in the order of preference.
|
SecurityConfigurator |
provider(SecurityConfigurator.SslProvider provider)
Sets the
SecurityConfigurator.SslProvider to use. |
SecurityConfigurator |
sessionCacheSize(long sessionCacheSize)
Set the size of the cache used for storing SSL session objects.
|
SecurityConfigurator |
sessionTimeout(long sessionTimeout)
Set the timeout for the cached SSL session objects, in seconds.
|
SecurityConfigurator |
trustManager(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)
Trusted certificates for verifying the remote endpoint's certificate.
|
SecurityConfigurator |
trustManager(javax.net.ssl.TrustManagerFactory trustManagerFactory)
Trust manager for verifying the remote endpoint's certificate.
|
SecurityConfigurator trustManager(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)
X.509 certificate chain in PEM format.trustCertChainSupplier - 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.SecurityConfigurator trustManager(javax.net.ssl.TrustManagerFactory trustManagerFactory)
TrustManagerFactory which take preference over any configured Supplier.trustManagerFactory - the TrustManagerFactory to use.this.SecurityConfigurator protocols(java.lang.String... protocols)
protocols - the protocols to use.this.SSLEngine.setEnabledProtocols(String[])SecurityConfigurator ciphers(java.lang.Iterable<java.lang.String> ciphers)
ciphers - the ciphers to use.this.SecurityConfigurator sessionCacheSize(long sessionCacheSize)
sessionCacheSize - the cache size.this.SecurityConfigurator sessionTimeout(long sessionTimeout)
sessionTimeout - the session timeout.this.SecurityConfigurator provider(SecurityConfigurator.SslProvider provider)
SecurityConfigurator.SslProvider to use.provider - the provider.this.