Package org.forgerock.openig.tools
Class ClientTlsOptions
java.lang.Object
org.forgerock.openig.tools.TlsOptions
org.forgerock.openig.tools.ClientTlsOptions
Extension to
TlsOptions to support changing the behaviour of how hostname verification is enforced.-
Constructor Summary
ConstructorsConstructorDescriptionClientTlsOptions(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
Methods inherited from class org.forgerock.openig.tools.TlsOptions
getAlgorithm, getCipherSuitesArray, getCipherSuitesList, getEnabledProtocolsArray, getEnabledProtocolsList, getKeyManagers, getTrustManagers, isAlpnEnabled
-
Constructor Details
-
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 Details
-
getHostnameVerifier
Returns theHttpClientHandler.HostnameVerifierto apply.- Returns:
- the
HttpClientHandler.HostnameVerifierto apply.
-