|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.identity.application.authentication.endpoint.util.TenantMgtAdminServiceClient
public class TenantMgtAdminServiceClient
Client for calling Admin Services with mutual ssl authentication
| Constructor Summary | |
|---|---|
TenantMgtAdminServiceClient()
|
|
| Method Summary | |
|---|---|
static HttpsURLConnection |
getHttpsURLConnection()
|
static String |
getKeyManagerType()
|
static String |
getKeyStoreType()
|
static String |
getTrustManagerType()
|
static void |
getTrustManagerType(String trustManagerType)
|
static String |
getTrustStoreType()
|
static void |
initMutualSSLConnection()
Create basic SSL connection factory |
static void |
loadKeyStore(String keyStorePath,
String keyStorePassoword)
Load key store with given keystore.jks |
static void |
loadTrustStore(String trustStorePath,
String trustStorePassoword)
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 |
setKeyStoreType(String keyStoreType)
|
static void |
setProtocol(String protocol)
|
static void |
settKeyManagerType(String keyManagerType)
|
static void |
setTrustStoreType(String trustStoreType)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TenantMgtAdminServiceClient()
| Method Detail |
|---|
public static void loadKeyStore(String keyStorePath,
String keyStorePassoword)
throws KeyStoreException,
IOException,
CertificateException,
NoSuchAlgorithmException
keyStorePath - Path to keystorekeyStorePassoword - Password of keystore
KeyStoreException
IOException
CertificateException
NoSuchAlgorithmException
public static void loadTrustStore(String trustStorePath,
String trustStorePassoword)
throws KeyStoreException,
IOException,
CertificateException,
NoSuchAlgorithmException
trustStorePath - Path to truststoretrustStorePassoword - Password of truststore
KeyStoreException
IOException
CertificateException
NoSuchAlgorithmException
public static void initMutualSSLConnection()
throws NoSuchAlgorithmException,
KeyStoreException,
KeyManagementException,
IOException,
UnrecoverableKeyException
NoSuchAlgorithmException
KeyStoreException
KeyManagementException
IOException
UnrecoverableKeyException
public static String sendPostRequest(String backendURL,
String message,
Map<String,String> requestProps)
backendURL - URL of the servicemessage - Message sent to the URLrequestProps - Requeset properties
IOExceptionpublic 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 settKeyManagerType(String keyManagerType)
public static String getTrustManagerType()
public static void getTrustManagerType(String trustManagerType)
public static HttpsURLConnection getHttpsURLConnection()
public static void setProtocol(String protocol)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||