public interface HttpServerSecurityConfigurator extends ServerSecurityConfigurator
ServerSecurityConfigurator.ClientAuthSecurityConfigurator.SslProvider| Modifier and Type | Method and Description |
|---|---|
HttpServerSecurityConfigurator |
ciphers(java.lang.Iterable<java.lang.String> ciphers)
The cipher suites to enable, in the order of preference.
|
HttpServerSecurityConfigurator |
clientAuth(ServerSecurityConfigurator.ClientAuth clientAuth)
Sets the client authentication mode.
|
HttpServerBuilder |
commit(javax.net.ssl.KeyManagerFactory keyManagerFactory)
Commit configuring server security.
|
HttpServerBuilder |
commit(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier,
java.util.function.Supplier<java.io.InputStream> keySupplier)
Commit configuring server security.
|
HttpServerBuilder |
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.
|
HttpServerSecurityConfigurator |
protocols(java.lang.String... protocols)
The SSL protocols to enable, in the order of preference.
|
HttpServerSecurityConfigurator |
provider(SecurityConfigurator.SslProvider provider)
Sets the
SecurityConfigurator.SslProvider to use. |
HttpServerSecurityConfigurator |
sessionCacheSize(long sessionCacheSize)
Set the size of the cache used for storing SSL session objects.
|
HttpServerSecurityConfigurator |
sessionTimeout(long sessionTimeout)
Set the timeout for the cached SSL session objects, in seconds.
|
HttpServerSecurityConfigurator |
trustManager(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)
Trusted certificates for verifying the remote endpoint's certificate.
|
HttpServerSecurityConfigurator |
trustManager(javax.net.ssl.TrustManagerFactory trustManagerFactory)
Trust manager for verifying the remote endpoint's certificate.
|
HttpServerSecurityConfigurator 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.HttpServerSecurityConfigurator 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.HttpServerSecurityConfigurator protocols(java.lang.String... protocols)
SecurityConfiguratorprotocols in interface SecurityConfiguratorprotocols in interface ServerSecurityConfiguratorprotocols - the protocols to use.this.SSLEngine.setEnabledProtocols(String[])HttpServerSecurityConfigurator ciphers(java.lang.Iterable<java.lang.String> ciphers)
SecurityConfiguratorciphers in interface SecurityConfiguratorciphers in interface ServerSecurityConfiguratorciphers - the ciphers to use.this.HttpServerSecurityConfigurator sessionCacheSize(long sessionCacheSize)
SecurityConfiguratorsessionCacheSize in interface SecurityConfiguratorsessionCacheSize in interface ServerSecurityConfiguratorsessionCacheSize - the cache size.this.HttpServerSecurityConfigurator sessionTimeout(long sessionTimeout)
SecurityConfiguratorsessionTimeout in interface SecurityConfiguratorsessionTimeout in interface ServerSecurityConfiguratorsessionTimeout - the session timeout.this.HttpServerSecurityConfigurator provider(SecurityConfigurator.SslProvider provider)
SecurityConfiguratorSecurityConfigurator.SslProvider to use.provider in interface SecurityConfiguratorprovider in interface ServerSecurityConfiguratorprovider - the provider.this.HttpServerSecurityConfigurator clientAuth(ServerSecurityConfigurator.ClientAuth clientAuth)
ServerSecurityConfiguratorclientAuth in interface ServerSecurityConfiguratorclientAuth - the auth configuration to use.this.HttpServerBuilder commit(javax.net.ssl.KeyManagerFactory keyManagerFactory)
keyManagerFactory - an KeyManagerFactory.HttpServerBuilder that initiated the security configuration process.HttpServerBuilder 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().
HttpServerBuilder that initiated the security configuration process.HttpServerBuilder 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.HttpServerBuilder that initiated the security configuration process.