public final class TlsPolicy extends Object
Modifier and Type | Field and Description |
---|---|
String[] |
ciphers
Allowable TLS ciphers that the client can use for secure connections.
|
SSLContext |
context
Optional SSLContext configuration instead using default SSLContext.
|
boolean |
forLoginOnly
Use TLS connections only for login authentication.
|
String[] |
protocols
Allowable TLS protocols that the client can use for secure connections.
|
BigInteger[] |
revokeCertificates
Reject certificates whose serial numbers match a serial number in this array.
|
public SSLContext context
Default: null (use default SSLContext).
public String[] protocols
SSLSocket.getSupportedProtocols()
Multiple protocols can be specified. Example:
TlsPolicy policy = new TlsPolicy();
policy.protocols = new String[] {"TLSv1", "TLSv1.1", "TLSv1.2"};
Default: TLSv1.2 (Only allow TLSv1.2 protocol)public String[] ciphers
SSLSocket.getSupportedCipherSuites()
Multiple ciphers can be specified.
Default: null (Allow default ciphers defined by JVM)public BigInteger[] revokeCertificates
public boolean forLoginOnly
public TlsPolicy(TlsPolicy other)
public TlsPolicy()
Copyright ? 2012–2018 Aerospike, Inc. All rights reserved.