public class FileBaseSecretRepository extends java.lang.Object implements SecretRepository
| Constructor and Description |
|---|
FileBaseSecretRepository(IdentityKeyStoreWrapper identity,
TrustKeyStoreWrapper trust) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getEncryptedData(java.lang.String alias)
Returns the encrypted Value of provided alias name .
|
SecretRepository |
getParent()
Returns the parent secret repository
|
java.lang.String |
getSecret(java.lang.String alias)
Returns the secret of provided alias name .
|
void |
init(java.util.Properties properties,
java.lang.String id)
Initializes the repository based on provided properties
|
void |
setParent(SecretRepository parent)
Sets the parent secret repository
Secret Repositories are made a chain so that , one can get a secret from other.
|
public FileBaseSecretRepository(IdentityKeyStoreWrapper identity, TrustKeyStoreWrapper trust)
public void init(java.util.Properties properties,
java.lang.String id)
init in interface SecretRepositoryproperties - Configuration propertiesid - Identifier to identify properties related to the corresponding repositorypublic java.lang.String getSecret(java.lang.String alias)
SecretRepositorygetSecret in interface SecretRepositoryalias - Alias name for look up a secretSecretRepositorypublic java.lang.String getEncryptedData(java.lang.String alias)
SecretRepositorygetEncryptedData in interface SecretRepositoryalias - Alias name for look up a encrypted ValueSecretRepositorypublic void setParent(SecretRepository parent)
SecretRepositorysetParent in interface SecretRepositoryparent - Parent secret repositorypublic SecretRepository getParent()
SecretRepositorygetParent in interface SecretRepositoryCopyright © 2005-2022 Apache Software Foundation. All Rights Reserved.