public class TenantMgtAdminServiceClient extends Object
| Modifier and Type | Method and Description |
|---|---|
static HttpsURLConnection |
getHttpsURLConnection() |
static String |
getKeyManagerType() |
static String |
getKeyStoreType() |
static String |
getTrustManagerType() |
static String |
getTrustStoreType() |
static void |
initMutualSSLConnection(boolean hostNameVerificationEnabled)
Create basic SSL connection factory
|
static void |
loadKeyStore(String keyStorePath,
String keyStorePassword)
Load key store with given keystore.jks
|
static void |
loadTrustStore(String trustStorePath,
String trustStorePassword)
Load trust store with given .jks file
|
static String |
sendPostRequest(String backendURL,
String message,
Map<String,String> requestProps)
Send mutual ssl https post request and return data
|
static void |
setKeyManagerType(String keyManagerType) |
static void |
setKeyStoreType(String keyStoreType) |
static void |
setProtocol(String protocol) |
static void |
setTrustManagerType(String trustManagerType) |
static void |
setTrustStoreType(String trustStoreType) |
public static void loadKeyStore(String keyStorePath, String keyStorePassword) throws AuthenticationException
keyStorePath - Path to keystorekeyStorePassword - Password of keystoreAuthenticationExceptionpublic static void loadTrustStore(String trustStorePath, String trustStorePassword) throws AuthenticationException
trustStorePath - Path to truststoretrustStorePassword - Password of truststoreAuthenticationExceptionpublic static void initMutualSSLConnection(boolean hostNameVerificationEnabled)
throws AuthenticationException
AuthenticationExceptionpublic static String sendPostRequest(String backendURL, String message, Map<String,String> requestProps)
backendURL - URL of the servicemessage - Message sent to the URLrequestProps - Request propertiesIOExceptionpublic static String getKeyStoreType()
public static void setKeyStoreType(String keyStoreType)
public static String getTrustStoreType()
public static void setTrustStoreType(String trustStoreType)
public static String getKeyManagerType()
public static void setKeyManagerType(String keyManagerType)
public static String getTrustManagerType()
public static void setTrustManagerType(String trustManagerType)
public static HttpsURLConnection getHttpsURLConnection()
public static void setProtocol(String protocol)
Copyright © 2016 WSO2. All rights reserved.