public abstract class AbstractSecretRepository extends Object implements SecretRepository
SecretRepository
and it provides basic implementations for
SecretRepository.loadSecrets(org.wso2.carbon.secvault.model.SecretRepositoryConfiguration)
, SecretRepository.persistSecrets(org.wso2.carbon.secvault.model.SecretRepositoryConfiguration)
and SecretRepository.resolve(java.lang.String)
methods. An extended class of this should provide concrete implementations for other abstract methods and register
that class as an OSGi service of interface SecretRepository
.Constructor and Description |
---|
AbstractSecretRepository() |
Modifier and Type | Method and Description |
---|---|
void |
loadSecrets(SecretRepositoryConfiguration secretRepositoryConfiguration)
An implementation of this method should load the secrets from underlying secret repository.
|
void |
persistSecrets(SecretRepositoryConfiguration secretRepositoryConfiguration)
An implementation of this method should persist the secrets to the underlying secret repository.
|
char[] |
resolve(String alias)
An implementation of this method should provide the plain text secret for a given alias.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decrypt, encrypt, init
public void loadSecrets(SecretRepositoryConfiguration secretRepositoryConfiguration) throws SecureVaultException
SecretRepository
loadSecrets
in interface SecretRepository
secretRepositoryConfiguration
- SecretRepositoryConfiguration
SecureVaultException
- on an error while trying to load secretspublic void persistSecrets(SecretRepositoryConfiguration secretRepositoryConfiguration) throws SecureVaultException
SecretRepository
persistSecrets
in interface SecretRepository
secretRepositoryConfiguration
- SecretRepositoryConfiguration
SecureVaultException
- on an error while trying to persis secretspublic char[] resolve(String alias)
SecretRepository
resolve
in interface SecretRepository
alias
- alias of the secretCopyright © 2017 WSO2. All rights reserved.