U - the type of address before resolution (unresolved address)R - the type of address after resolution (resolved address)public interface PartitionedHttpClientSecurityConfigurator<U,R> extends ClientSecurityConfigurator
SecurityConfigurator.SslProvider| Modifier and Type | Method and Description |
|---|---|
PartitionedHttpClientSecurityConfigurator<U,R> |
ciphers(java.lang.Iterable<java.lang.String> ciphers)
The cipher suites to enable, in the order of preference.
|
PartitionedHttpClientBuilder<U,R> |
commit()
Commit configuring client security.
|
PartitionedHttpClientSecurityConfigurator<U,R> |
disableHostnameVerification()
Disable verification of the server identity.
|
PartitionedHttpClientSecurityConfigurator<U,R> |
hostnameVerification(java.lang.String hostNameVerificationHost)
Set the host name used to verify the server
identity.
|
PartitionedHttpClientSecurityConfigurator<U,R> |
hostnameVerification(java.lang.String hostNameVerificationHost,
int hostNameVerificationPort)
Set the host name and port used to verify the server
identity.
|
PartitionedHttpClientSecurityConfigurator<U,R> |
hostnameVerification(java.lang.String hostNameVerificationAlgorithm,
java.lang.String hostNameVerificationHost)
Determines what algorithm to use for hostname verification.
|
PartitionedHttpClientSecurityConfigurator<U,R> |
hostnameVerification(java.lang.String hostNameVerificationAlgorithm,
java.lang.String hostNameVerificationHost,
int hostNameVerificationPort)
Determines what algorithm to use for hostname verification.
|
PartitionedHttpClientSecurityConfigurator<U,R> |
hostnameVerificationAlgorithm(java.lang.String hostNameVerificationAlgorithm)
Determines what algorithm to use for hostname verification.
|
PartitionedHttpClientSecurityConfigurator<U,R> |
keyManager(javax.net.ssl.KeyManagerFactory keyManagerFactory)
Identifying certificate for this host.
|
PartitionedHttpClientSecurityConfigurator<U,R> |
keyManager(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier,
java.util.function.Supplier<java.io.InputStream> keySupplier)
Identifying certificate for this host.
|
PartitionedHttpClientSecurityConfigurator<U,R> |
keyManager(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier,
java.util.function.Supplier<java.io.InputStream> keySupplier,
java.lang.String keyPassword)
Identifying certificate for this host.
|
PartitionedHttpClientSecurityConfigurator<U,R> |
protocols(java.lang.String... protocols)
The SSL protocols to enable, in the order of preference.
|
PartitionedHttpClientSecurityConfigurator<U,R> |
provider(SecurityConfigurator.SslProvider provider)
Sets the
SecurityConfigurator.SslProvider to use. |
PartitionedHttpClientSecurityConfigurator<U,R> |
sessionCacheSize(long sessionCacheSize)
Set the size of the cache used for storing SSL session objects.
|
PartitionedHttpClientSecurityConfigurator<U,R> |
sessionTimeout(long sessionTimeout)
Set the timeout for the cached SSL session objects, in seconds.
|
PartitionedHttpClientSecurityConfigurator<U,R> |
sniHostname(java.lang.String sniHostname)
Set the SNI host name.
|
PartitionedHttpClientSecurityConfigurator<U,R> |
trustManager(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)
Trusted certificates for verifying the remote endpoint's certificate.
|
PartitionedHttpClientSecurityConfigurator<U,R> |
trustManager(javax.net.ssl.TrustManagerFactory trustManagerFactory)
Trust manager for verifying the remote endpoint's certificate.
|
PartitionedHttpClientBuilder<U,R> commit()
HttpServerBuilder that initiated the security configuration process.PartitionedHttpClientSecurityConfigurator<U,R> trustManager(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)
SecurityConfiguratorX.509 certificate chain in PEM format.trustManager in interface ClientSecurityConfiguratortrustManager 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.PartitionedHttpClientSecurityConfigurator<U,R> trustManager(javax.net.ssl.TrustManagerFactory trustManagerFactory)
SecurityConfiguratorTrustManagerFactory which take preference over any configured Supplier.trustManager in interface ClientSecurityConfiguratortrustManager in interface SecurityConfiguratortrustManagerFactory - the TrustManagerFactory to use.this.PartitionedHttpClientSecurityConfigurator<U,R> protocols(java.lang.String... protocols)
SecurityConfiguratorprotocols in interface ClientSecurityConfiguratorprotocols in interface SecurityConfiguratorprotocols - the protocols to use.this.SSLEngine.setEnabledProtocols(String[])PartitionedHttpClientSecurityConfigurator<U,R> ciphers(java.lang.Iterable<java.lang.String> ciphers)
SecurityConfiguratorciphers in interface ClientSecurityConfiguratorciphers in interface SecurityConfiguratorciphers - the ciphers to use.this.PartitionedHttpClientSecurityConfigurator<U,R> sessionCacheSize(long sessionCacheSize)
SecurityConfiguratorsessionCacheSize in interface ClientSecurityConfiguratorsessionCacheSize in interface SecurityConfiguratorsessionCacheSize - the cache size.this.PartitionedHttpClientSecurityConfigurator<U,R> sessionTimeout(long sessionTimeout)
SecurityConfiguratorsessionTimeout in interface ClientSecurityConfiguratorsessionTimeout in interface SecurityConfiguratorsessionTimeout - the session timeout.this.PartitionedHttpClientSecurityConfigurator<U,R> provider(SecurityConfigurator.SslProvider provider)
SecurityConfiguratorSecurityConfigurator.SslProvider to use.provider in interface ClientSecurityConfiguratorprovider in interface SecurityConfiguratorprovider - the provider.this.PartitionedHttpClientSecurityConfigurator<U,R> hostnameVerificationAlgorithm(java.lang.String hostNameVerificationAlgorithm)
ClientSecurityConfiguratorhostnameVerificationAlgorithm in interface ClientSecurityConfiguratorhostNameVerificationAlgorithm - The algorithm to use when verifying the host name.
See
Supported algorithm names.this.SSLParameters.setEndpointIdentificationAlgorithm(String)PartitionedHttpClientSecurityConfigurator<U,R> hostnameVerification(java.lang.String hostNameVerificationAlgorithm, java.lang.String hostNameVerificationHost)
ClientSecurityConfiguratorhostnameVerification in interface ClientSecurityConfiguratorhostNameVerificationAlgorithm - The algorithm to use when verifying the host name.
See
Supported algorithm names.hostNameVerificationHost - the host name used to verify the
server identity.this.SSLParameters.setEndpointIdentificationAlgorithm(String)PartitionedHttpClientSecurityConfigurator<U,R> hostnameVerification(java.lang.String hostNameVerificationAlgorithm, java.lang.String hostNameVerificationHost, int hostNameVerificationPort)
ClientSecurityConfiguratorhostnameVerification in interface ClientSecurityConfiguratorhostNameVerificationAlgorithm - The algorithm to use when verifying the host name.
See
Supported algorithm names.hostNameVerificationHost - the host name used to verify the
server identity.hostNameVerificationPort - The port which maybe used to verify the
server identity.this.SSLParameters.setEndpointIdentificationAlgorithm(String)PartitionedHttpClientSecurityConfigurator<U,R> hostnameVerification(java.lang.String hostNameVerificationHost)
ClientSecurityConfiguratorhostnameVerification in interface ClientSecurityConfiguratorhostNameVerificationHost - the host name used to verify the
server identity.this.PartitionedHttpClientSecurityConfigurator<U,R> hostnameVerification(java.lang.String hostNameVerificationHost, int hostNameVerificationPort)
ClientSecurityConfiguratorhostnameVerification in interface ClientSecurityConfiguratorhostNameVerificationHost - the host name used to verify the
server identity.hostNameVerificationPort - The port which maybe used to verify the
server identity.this.SSLParameters.setEndpointIdentificationAlgorithm(String)PartitionedHttpClientSecurityConfigurator<U,R> sniHostname(java.lang.String sniHostname)
ClientSecurityConfiguratorsniHostname in interface ClientSecurityConfiguratorsniHostname - The SNI host name.this.PartitionedHttpClientSecurityConfigurator<U,R> disableHostnameVerification()
ClientSecurityConfiguratordisableHostnameVerification in interface ClientSecurityConfiguratorthis.PartitionedHttpClientSecurityConfigurator<U,R> keyManager(javax.net.ssl.KeyManagerFactory keyManagerFactory)
ClientSecurityConfiguratorkeyManagerFactory may be null, which disables mutual
authentication. The KeyManagerFactory which take preference over any configured Supplier.keyManager in interface ClientSecurityConfiguratorkeyManagerFactory - an KeyManagerFactory.this.PartitionedHttpClientSecurityConfigurator<U,R> keyManager(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier)
ClientSecurityConfiguratorkeyCertChainInputStream and keyInputStream may
be null, which disables mutual authentication.keyManager in interface ClientSecurityConfiguratorkeyCertChainSupplier - a 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().
this.PartitionedHttpClientSecurityConfigurator<U,R> keyManager(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier, java.lang.String keyPassword)
ClientSecurityConfiguratorkeyCertChainInputStream and keyInputStream may
be null, which disables mutual authentication.keyManager in interface ClientSecurityConfiguratorkeyCertChainSupplier - 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 keyInputStream.this.