public class TlsOptions extends Object
Constructor and Description |
---|
TlsOptions(String algorithm,
KeyManager[] managers,
TrustManager[] trustManagers,
List<String> ciphers,
List<String> protocols)
Constructs TLS options with provided values.
|
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm()
Returns the SSL context algorithm name (never null).
|
String[] |
getCipherSuitesArray()
Returns the array of cipher suites to be enabled (may be null for JVM default).
|
List<String> |
getCipherSuitesList()
Returns the list of cipher suites to be enabled (may be empty for JVM default).
|
String[] |
getEnabledProtocolsArray()
Returns the array of protocols to be enabled (may be null for JVM default).
|
List<String> |
getEnabledProtocolsList()
Returns the list of protocols to be enabled (may be empty for JVM default).
|
KeyManager[] |
getKeyManagers()
Returns the array of
KeyManager to use (may be null). |
TrustManager[] |
getTrustManagers()
Returns the array of
TrustManager to use (may be null). |
public TlsOptions(String algorithm, KeyManager[] managers, TrustManager[] trustManagers, List<String> ciphers, List<String> protocols)
algorithm
- SSL algorithm (not null)managers
- array of KeyManager
(may be null)trustManagers
- array of TrustManager
(may be null)ciphers
- list of cipher suites to be enabled (may be empty for JVM default)protocols
- list of protocols to be enabled (may be empty for JVM default)public String getAlgorithm()
public KeyManager[] getKeyManagers()
KeyManager
to use (may be null).KeyManager
to use (may be null).public TrustManager[] getTrustManagers()
TrustManager
to use (may be null).TrustManager
to use (may be null).public String[] getCipherSuitesArray()
public List<String> getCipherSuitesList()
public String[] getEnabledProtocolsArray()
Copyright 2011-2017 ForgeRock AS.