public class FileSecretRepository extends Object implements org.wso2.securevault.secret.SecretRepository
| Constructor and Description |
|---|
FileSecretRepository() |
| Modifier and Type | Method and Description |
|---|---|
String |
getEncryptedData(String alias) |
org.wso2.securevault.secret.SecretRepository |
getParent() |
String |
getPlainTextSecret(String alias)
Function to retrieve plain text secret located in the secret file
|
String |
getSecret(String alias)
Returns the secret of provided alias name .
|
void |
init(Properties properties,
String id) |
void |
setParent(org.wso2.securevault.secret.SecretRepository secretRepository) |
public void init(Properties properties, String id)
init in interface org.wso2.securevault.secret.SecretRepositorypublic String getSecret(String alias)
getSecret in interface org.wso2.securevault.secret.SecretRepositoryalias - file path to the secret filepublic String getPlainTextSecret(String alias)
alias - public String getEncryptedData(String alias)
getEncryptedData in interface org.wso2.securevault.secret.SecretRepositorypublic void setParent(org.wso2.securevault.secret.SecretRepository secretRepository)
setParent in interface org.wso2.securevault.secret.SecretRepositorypublic org.wso2.securevault.secret.SecretRepository getParent()
getParent in interface org.wso2.securevault.secret.SecretRepositoryCopyright © 2021 WSO2. All rights reserved.