Class MediationSecurityAdminService
- java.lang.Object
-
- org.wso2.carbon.core.AbstractAdmin
-
- org.wso2.carbon.mediation.initializer.AbstractServiceBusAdmin
-
- org.wso2.carbon.mediation.security.vault.MediationSecurityAdminService
-
public class MediationSecurityAdminService extends org.wso2.carbon.mediation.initializer.AbstractServiceBusAdmin
-
-
Constructor Summary
Constructors Constructor Description MediationSecurityAdminService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdoDecrypt(String cipherText)Operation to do the decryption ops by invoking secure vault apiStringdoEncrypt(String plainTextPass)Operation to do the encryption ops by invoking secure vault apivoidsetSecretIdForHashiCorpVault(String secretId)-
Methods inherited from class org.wso2.carbon.mediation.initializer.AbstractServiceBusAdmin
getLock, getMediationPersistenceManager, getServerConfigurationInformation, getServerContextInformation, getSynapseConfiguration, getSynapseEnvironment, getSynapseEnvironment, lockSynapseConfiguration, unlockSynapseConfiguration
-
Methods inherited from class org.wso2.carbon.core.AbstractAdmin
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUserId, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp
-
-
-
-
Method Detail
-
doEncrypt
public String doEncrypt(String plainTextPass) throws org.apache.axis2.AxisFault
Operation to do the encryption ops by invoking secure vault api- Parameters:
plainTextPass-- Returns:
- Throws:
org.apache.axis2.AxisFault
-
doDecrypt
public String doDecrypt(String cipherText) throws org.apache.axis2.AxisFault
Operation to do the decryption ops by invoking secure vault api- Parameters:
cipherText- The cipher text to be decrypted- Returns:
- The decrypted plain text
- Throws:
org.apache.axis2.AxisFault- if an error occurs while loading the keystore
-
setSecretIdForHashiCorpVault
public void setSecretIdForHashiCorpVault(String secretId) throws ExternalVaultException
- Throws:
ExternalVaultException
-
-