Class RegistrySecretRepository

  • All Implemented Interfaces:
    org.wso2.securevault.secret.SecretRepository

    public class RegistrySecretRepository
    extends Object
    implements org.wso2.securevault.secret.SecretRepository
    Holds all secrets in a file
    • Constructor Detail

      • RegistrySecretRepository

        public RegistrySecretRepository()
    • Method Detail

      • getSecret

        public String getSecret​(String alias)
        Specified by:
        getSecret in interface org.wso2.securevault.secret.SecretRepository
        Parameters:
        alias - Alias name for look up a secret
        Returns:
        Secret if there is any , otherwise ,alias itself
        See Also:
        SecretRepository
      • getEncryptedData

        public String getEncryptedData​(String alias)
        Specified by:
        getEncryptedData in interface org.wso2.securevault.secret.SecretRepository
        Parameters:
        alias - Alias name for look up a encrypted Value
        Returns:
        encrypted Value if there is any , otherwise ,alias itself
        See Also:
        SecretRepository
      • setParent

        public void setParent​(org.wso2.securevault.secret.SecretRepository parent)
        Specified by:
        setParent in interface org.wso2.securevault.secret.SecretRepository
      • getParent

        public org.wso2.securevault.secret.SecretRepository getParent()
        Specified by:
        getParent in interface org.wso2.securevault.secret.SecretRepository
      • getSynCtx

        public org.apache.synapse.MessageContext getSynCtx()
      • setSynCtx

        public void setSynCtx​(org.apache.synapse.MessageContext synCtx)
      • init

        public void init​(Properties arg0,
                         String arg1)
        Specified by:
        init in interface org.wso2.securevault.secret.SecretRepository