Package org.forgerock.openig.tools
Class TlsOptions
- java.lang.Object
-
- org.forgerock.openig.tools.TlsOptions
-
public class TlsOptions extends Object
TLS Options value object.
-
-
Constructor Summary
Constructors Constructor Description TlsOptions(String algorithm, KeyManager[] managers, TrustManager[] trustManagers, List<String> ciphers, List<String> protocols)
Constructs TLS options with provided values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 ofKeyManager
to use (may be null).TrustManager[]
getTrustManagers()
Returns the array ofTrustManager
to use (may be null).
-
-
-
Constructor Detail
-
TlsOptions
public TlsOptions(String algorithm, KeyManager[] managers, TrustManager[] trustManagers, List<String> ciphers, List<String> protocols)
Constructs TLS options with provided values.- Parameters:
algorithm
- SSL algorithm (not null)managers
- array ofKeyManager
(may be null)trustManagers
- array ofTrustManager
(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)
-
-
Method Detail
-
getAlgorithm
public String getAlgorithm()
Returns the SSL context algorithm name (never null).- Returns:
- the SSL context algorithm name (never null).
-
getKeyManagers
public KeyManager[] getKeyManagers()
Returns the array ofKeyManager
to use (may be null).- Returns:
- the array of
KeyManager
to use (may be null).
-
getTrustManagers
public TrustManager[] getTrustManagers()
Returns the array ofTrustManager
to use (may be null).- Returns:
- the array of
TrustManager
to use (may be null).
-
getCipherSuitesArray
public String[] getCipherSuitesArray()
Returns the array of cipher suites to be enabled (may be null for JVM default).- Returns:
- the array of cipher suites to be enabled (may be null for JVM default).
-
getCipherSuitesList
public List<String> getCipherSuitesList()
Returns the list of cipher suites to be enabled (may be empty for JVM default).- Returns:
- the list of cipher suites to be enabled (may be empty for JVM default).
-
getEnabledProtocolsArray
public String[] getEnabledProtocolsArray()
Returns the array of protocols to be enabled (may be null for JVM default).- Returns:
- the array of protocols to be enabled (may be null for JVM default).
-
-