Package org.gluu.oxauth.util
Class ClientUtil
java.lang.Object
org.gluu.oxauth.util.ClientUtil
- Version:
- 0.9, 26/12/2012
- Author:
- Yuriy Zabrovarnyy, Yuriy Movchan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.http.impl.client.CloseableHttpClient
createHttpClient
(String tlsVersion, String[] ciphers) Creates a special SSLContext using a custom TLS version and a set of ciphers enabled to process SSL connections.extractListByKey
(org.json.JSONObject jsonObject, String key) static String
toPrettyJson
(org.json.JSONObject jsonObject)
-
Constructor Details
-
ClientUtil
public ClientUtil()
-
-
Method Details
-
toPrettyJson
public static String toPrettyJson(org.json.JSONObject jsonObject) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
extractListByKey
-
createHttpClient
public static org.apache.http.impl.client.CloseableHttpClient createHttpClient(String tlsVersion, String[] ciphers) Creates a special SSLContext using a custom TLS version and a set of ciphers enabled to process SSL connections.- Parameters:
tlsVersion
- TLS version, for example TLSv1.2ciphers
- Set of ciphers used to create connections.
-