Class FileBaseSecretRepository
java.lang.Object
org.apache.synapse.securevault.secret.repository.FileBaseSecretRepository
- All Implemented Interfaces:
SecretRepository
Holds all secrets in a file
-
Constructor Summary
ConstructorsConstructorDescriptionFileBaseSecretRepository(IdentityKeyStoreWrapper identity, TrustKeyStoreWrapper trust) -
Method Summary
Modifier and TypeMethodDescriptiongetEncryptedData(String alias) Returns the encrypted Value of provided alias name .Returns the parent secret repositoryReturns the secret of provided alias name .voidinit(Properties properties, String id) Initializes the repository based on provided propertiesvoidsetParent(SecretRepository parent) Sets the parent secret repository Secret Repositories are made a chain so that , one can get a secret from other.
-
Constructor Details
-
FileBaseSecretRepository
-
-
Method Details
-
init
Initializes the repository based on provided properties- Specified by:
initin interfaceSecretRepository- Parameters:
properties- Configuration propertiesid- Identifier to identify properties related to the corresponding repository
-
getSecret
Description copied from interface:SecretRepositoryReturns the secret of provided alias name . An alias represents the logical name for a look up secret- Specified by:
getSecretin interfaceSecretRepository- Parameters:
alias- Alias name for look up a secret- Returns:
- Secret if there is any , otherwise ,alias itself
- See Also:
-
getEncryptedData
Description copied from interface:SecretRepositoryReturns the encrypted Value of provided alias name . An alias represents the logical name for a look up secret- Specified by:
getEncryptedDatain interfaceSecretRepository- Parameters:
alias- Alias name for look up a encrypted Value- Returns:
- encrypted Value if there is any , otherwise ,alias itself
- See Also:
-
setParent
Description copied from interface:SecretRepositorySets the parent secret repository Secret Repositories are made a chain so that , one can get a secret from other. For example, JDBC password can be in file based secret repository- Specified by:
setParentin interfaceSecretRepository- Parameters:
parent- Parent secret repository
-
getParent
Description copied from interface:SecretRepositoryReturns the parent secret repository- Specified by:
getParentin interfaceSecretRepository- Returns:
- Parent secret repository
-