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 toTlsOptionsto 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.HostnameVerifiergetHostnameVerifier()Returns theHttpClientHandler.HostnameVerifierto 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.HostnameVerifierto apply
-
-
Method Detail
-
getHostnameVerifier
public HttpClientHandler.HostnameVerifier getHostnameVerifier()
Returns theHttpClientHandler.HostnameVerifierto apply.- Returns:
- the
HttpClientHandler.HostnameVerifierto apply.
-
-