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.SecretRepository
public String getSecret(String alias)
getSecret
in interface org.wso2.securevault.secret.SecretRepository
alias
- file path to the secret filepublic String getPlainTextSecret(String alias)
alias
- public String getEncryptedData(String alias)
getEncryptedData
in interface org.wso2.securevault.secret.SecretRepository
public void setParent(org.wso2.securevault.secret.SecretRepository secretRepository)
setParent
in interface org.wso2.securevault.secret.SecretRepository
public org.wso2.securevault.secret.SecretRepository getParent()
getParent
in interface org.wso2.securevault.secret.SecretRepository
Copyright © 2020 WSO2. All rights reserved.