@Immutable public class Tls extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Tls.ClientAuthMode
The X509 client certificate authentication mode.
|
| Constructor and Description |
|---|
Tls(String keystorePath,
String keystorePassword,
String keystoreType,
String privateKeyPassword,
String truststorePath,
String truststorePassword,
String truststoreType,
int handshakeTimeout,
Tls.ClientAuthMode clientAuthMode,
List<String> protocols,
List<String> cipherSuites)
Creates a new TLS configuration
|
Tls(String keystorePath,
String keystorePassword,
String keystoreType,
String privateKeyPassword,
String truststorePath,
String truststorePassword,
String truststoreType,
int handshakeTimeout,
Tls.ClientAuthMode clientAuthMode,
List<String> protocols,
List<String> cipherSuites,
Long concurrentHandshakeLimit,
boolean nativeSSl,
boolean ocspStaplingEnabled,
String ocspOverrideUrl,
int ocspCacheInterval)
Creates a new TLS configuration
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<String> |
getCipherSuites() |
Tls.ClientAuthMode |
getClientAuthMode() |
Long |
getConcurrentHandshakeLimit() |
int |
getHandshakeTimeout() |
String |
getKeystorePassword() |
String |
getKeystorePath() |
String |
getKeystoreType() |
int |
getOcspCacheInterval() |
String |
getOcspOverrideUrl()
ocspOverrideUrl = URL to OCSP responder.
|
String |
getPrivateKeyPassword() |
List<String> |
getProtocols() |
String |
getTruststorePassword() |
String |
getTruststorePath() |
String |
getTruststoreType() |
int |
hashCode() |
boolean |
isNativeSsl() |
boolean |
isOcspStaplingEnabled() |
public Tls(@NotNull String keystorePath, @NotNull String keystorePassword, @NotNull String keystoreType, @NotNull String privateKeyPassword, @Nullable String truststorePath, @Nullable String truststorePassword, @Nullable String truststoreType, int handshakeTimeout, @NotNull Tls.ClientAuthMode clientAuthMode, @NotNull List<String> protocols, @NotNull List<String> cipherSuites, @Nullable Long concurrentHandshakeLimit, boolean nativeSSl, boolean ocspStaplingEnabled, @Nullable String ocspOverrideUrl, int ocspCacheInterval)
keystorePath - the path to the keystorekeystorePassword - the password for the keystorekeystoreType - the keystore type. When in doubt, use JKSprivateKeyPassword - the password to the private keytruststorePath - the path to the truststoretruststorePassword - the password for the truststoretruststoreType - the truststore type. When in doubt, use JKShandshakeTimeout - the TLS handshake timeoutclientAuthMode - the client authentication modeprotocols - the supported protocols. null means that all enabled protocols by the JVM are
enabledcipherSuites - the supported cipher suites. null means that all enabled cipher suites by the
JVM are enabledconcurrentHandshakeLimit - the maximum number of concurrent TLS handshakes that HiveMQ allows at any timenativeSSl - use the native SSL implementationocspStaplingEnabled - enable OCSP staplingocspOverrideUrl - overrides the URL of the OCSP-Responder contained in the server certificate. Can also be set if there is no OCSP URL information in the server certificateocspCacheInterval - interval in seconds to cache the OCSP response cyclicallypublic Tls(@NotNull String keystorePath, @NotNull String keystorePassword, @NotNull String keystoreType, String privateKeyPassword, @Nullable String truststorePath, @Nullable String truststorePassword, @Nullable String truststoreType, int handshakeTimeout, @NotNull Tls.ClientAuthMode clientAuthMode, @Nullable List<String> protocols, @NotNull List<String> cipherSuites)
keystorePath - the path to the keystorekeystorePassword - the password for the keystorekeystoreType - the keystore type. When in doubt, use JKSprivateKeyPassword - the password to the private keytruststorePath - the path to the truststoretruststorePassword - the password for the truststoretruststoreType - the truststore type. When in doubt, use JKShandshakeTimeout - the TLS handshake timeoutclientAuthMode - the client authentication modeprotocols - the supported protocols. null means that all enabled protocols by the JVM are
enabledcipherSuites - the supported cipher suites. null means that all enabled cipher suites by the
JVM are enabledpublic String getKeystorePath()
public String getKeystorePassword()
public String getKeystoreType()
public String getPrivateKeyPassword()
@Nullable public String getTruststorePassword()
public int getHandshakeTimeout()
public Tls.ClientAuthMode getClientAuthMode()
@Nullable public Long getConcurrentHandshakeLimit()
null if none is setpublic boolean isNativeSsl()
public boolean isOcspStaplingEnabled()
public String getOcspOverrideUrl()
public int getOcspCacheInterval()
Copyright © 2013-2018 dc-square GmbH. All Rights Reserved.