Class HttpUtil
java.lang.Object
org.keycloak.client.registration.cli.util.HttpUtil
- Author:
- Marko Strukelj
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic InputStreamstatic InputStreamstatic InputStreamstatic Stringstatic org.apache.http.client.HttpClientstatic voidstatic voidsetTruststore(File file, String password) static String
-
Field Details
-
APPLICATION_XML
- See Also:
-
APPLICATION_JSON
- See Also:
-
APPLICATION_FORM_URL_ENCODED
- See Also:
-
UTF_8
- See Also:
-
-
Constructor Details
-
HttpUtil
public HttpUtil()
-
-
Method Details
-
doGet
-
doPost
-
doPut
-
doDelete
-
getHttpClient
public static org.apache.http.client.HttpClient getHttpClient() -
getExpectedContentType
-
urlencode
-
setTruststore
public static void setTruststore(File file, String password) throws CertificateException, NoSuchAlgorithmException, KeyStoreException, IOException, KeyManagementException -
setSkipCertificateValidation
public static void setSkipCertificateValidation()
-