Class FileSecretRepository

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

    public class FileSecretRepository
    extends Object
    implements org.wso2.securevault.secret.SecretRepository
    Implementation of file based secret repository
    • Constructor Detail

      • FileSecretRepository

        public FileSecretRepository()
    • Method Detail

      • init

        public void init​(Properties properties,
                         String id)
        Specified by:
        init in interface org.wso2.securevault.secret.SecretRepository
      • getSecret

        public String getSecret​(String alias)
        Returns the secret of provided alias name . An alias represents the logical name for a look up secret
        Specified by:
        getSecret in interface org.wso2.securevault.secret.SecretRepository
        Parameters:
        alias - file path to the secret file
        Returns:
      • getPlainTextSecret

        public String getPlainTextSecret​(String alias)
        Function to retrieve plain text secret located in the secret file
        Parameters:
        alias -
        Returns:
      • getEncryptedData

        public String getEncryptedData​(String alias)
        Specified by:
        getEncryptedData in interface org.wso2.securevault.secret.SecretRepository
      • setParent

        public void setParent​(org.wso2.securevault.secret.SecretRepository secretRepository)
        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