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
  • Field Summary

    Fields inherited from class org.wso2.carbon.core.AbstractAdmin

    axisConfig, configurationContext
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    doDecrypt(String cipherText)
    Operation to do the decryption ops by invoking secure vault api
    doEncrypt(String plainTextPass)
    Operation to do the encryption ops by invoking secure vault api
    void
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MediationSecurityAdminService

      public MediationSecurityAdminService()
  • Method Details

    • 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