Class FileSecretRepository
java.lang.Object
org.wso2.carbon.mediation.security.vault.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEncryptedData(String alias) org.wso2.securevault.secret.SecretRepositorygetPlainTextSecret(String alias) Function to retrieve plain text secret located in the secret fileReturns the secret of provided alias name .voidinit(Properties properties, String id) voidsetParent(org.wso2.securevault.secret.SecretRepository secretRepository)
-
Constructor Details
-
FileSecretRepository
public FileSecretRepository()
-
-
Method Details
-
init
- Specified by:
initin interfaceorg.wso2.securevault.secret.SecretRepository
-
getSecret
Returns the secret of provided alias name . An alias represents the logical name for a look up secret- Specified by:
getSecretin interfaceorg.wso2.securevault.secret.SecretRepository- Parameters:
alias- file path to the secret file- Returns:
-
getPlainTextSecret
Function to retrieve plain text secret located in the secret file- Parameters:
alias-- Returns:
-
getEncryptedData
- Specified by:
getEncryptedDatain interfaceorg.wso2.securevault.secret.SecretRepository
-
setParent
public void setParent(org.wso2.securevault.secret.SecretRepository secretRepository) - Specified by:
setParentin interfaceorg.wso2.securevault.secret.SecretRepository
-
getParent
public org.wso2.securevault.secret.SecretRepository getParent()- Specified by:
getParentin interfaceorg.wso2.securevault.secret.SecretRepository
-