Class SecretCipherHander
- java.lang.Object
-
- org.wso2.carbon.mediation.security.vault.SecretCipherHander
-
public class SecretCipherHander extends Object
Entry point for manage secrets
-
-
Constructor Summary
Constructors Constructor Description SecretCipherHander(org.apache.synapse.MessageContext synCtx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEncryptedData(String alias)Returns the encrypted value corresponding to the given alias nameStringgetSecret(String alias)Returns the secret corresponding to the given alias nameStringgetSecret(String alias, SecretSrcData secretSrcData)org.apache.synapse.MessageContextgetSynCtx()voidsetSynCtx(org.apache.synapse.MessageContext synCtx)voidshoutDown()
-
-
-
Method Detail
-
getSecret
public String getSecret(String alias)
Returns the secret corresponding to the given alias name- Parameters:
alias- The logical or alias name- Returns:
- If there is a secret , otherwise , alias itself
-
getSecret
public String getSecret(String alias, SecretSrcData secretSrcData)
-
getEncryptedData
public String getEncryptedData(String alias)
Returns the encrypted value corresponding to the given alias name- Parameters:
alias- The logical or alias name- Returns:
- If there is a encrypted value , otherwise , alias itself
-
shoutDown
public void shoutDown()
-
getSynCtx
public org.apache.synapse.MessageContext getSynCtx()
-
setSynCtx
public void setSynCtx(org.apache.synapse.MessageContext synCtx)
-
-