public class FileBaseSecretRepository extends Object implements SecretRepository
Constructor and Description |
---|
FileBaseSecretRepository(IdentityKeyStoreWrapper identity,
TrustKeyStoreWrapper trust) |
Modifier and Type | Method and Description |
---|---|
SecretRepository |
getParent()
Returns the parent secret repository
|
String |
getSecret(String alias)
Returns the secret of provided alias name .
|
void |
init(Properties properties,
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(Properties properties, String id)
init
in interface SecretRepository
properties
- Configuration propertiesid
- Identifier to identify properties related to the corresponding repositorypublic String getSecret(String alias)
SecretRepository
getSecret
in interface SecretRepository
alias
- Alias name for look up a secretSecretRepository
public void setParent(SecretRepository parent)
SecretRepository
setParent
in interface SecretRepository
parent
- Parent secret repositorypublic SecretRepository getParent()
SecretRepository
getParent
in interface SecretRepository
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.