Package org.forgerock.openig.tools
Class ClientTlsOptions
- java.lang.Object
-
- org.forgerock.openig.tools.TlsOptions
-
- org.forgerock.openig.tools.ClientTlsOptions
-
public class ClientTlsOptions extends TlsOptions
Extension toTlsOptions
to support changing the behaviour of how hostname verification is enforced.
-
-
Constructor Summary
Constructors Constructor Description ClientTlsOptions(String algorithm, KeyManager[] managers, TrustManager[] trustManagers, List<String> ciphers, List<String> protocols, boolean enableAlpn, HttpClientHandler.HostnameVerifier hostnameVerifier)
Constructs TLS options with provided values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpClientHandler.HostnameVerifier
getHostnameVerifier()
Returns theHttpClientHandler.HostnameVerifier
to apply.-
Methods inherited from class org.forgerock.openig.tools.TlsOptions
getAlgorithm, getCipherSuitesArray, getCipherSuitesList, getEnabledProtocolsArray, getEnabledProtocolsList, getKeyManagers, getTrustManagers, isAlpnEnabled
-
-
-
-
Constructor Detail
-
ClientTlsOptions
public ClientTlsOptions(String algorithm, KeyManager[] managers, TrustManager[] trustManagers, List<String> ciphers, List<String> protocols, boolean enableAlpn, HttpClientHandler.HostnameVerifier hostnameVerifier)
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)enableAlpn
- enable the ALPN TLS extensionhostnameVerifier
- theHttpClientHandler.HostnameVerifier
to apply
-
-
Method Detail
-
getHostnameVerifier
public HttpClientHandler.HostnameVerifier getHostnameVerifier()
Returns theHttpClientHandler.HostnameVerifier
to apply.- Returns:
- the
HttpClientHandler.HostnameVerifier
to apply.
-
-