Class VaultSecretRepositoryProvider
java.lang.Object
org.wso2.securevault.secret.repository.VaultSecretRepositoryProvider
- All Implemented Interfaces:
SecretRepositoryProvider
This class is responsible for initializing SecretRepositories which belongs to a particular provider.
This is being called by the SecretManager by providing the secret configuration properties and the provider type
and this will return a collection of initialized SecretRepositories.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSecretRepository(IdentityKeyStoreWrapper identity, TrustKeyStoreWrapper trust) Returns a SecretRepository implementationinitProvider(Properties configurationProperties, String providerType) Returns a map containing initialized secret repositories corresponds to a give provider type.voidsetProviderKeyStores(IdentityKeyStoreWrapper identityKeyStoreWrapper, TrustKeyStoreWrapper trustKeyStoreWrapper) Sets the identity key store wrapper and trust key store wrapper.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wso2.securevault.secret.SecretRepositoryProvider
getSecretRepository
-
Constructor Details
-
VaultSecretRepositoryProvider
public VaultSecretRepositoryProvider()
-
-
Method Details
-
getSecretRepository
public SecretRepository getSecretRepository(IdentityKeyStoreWrapper identity, TrustKeyStoreWrapper trust) Description copied from interface:SecretRepositoryProviderReturns a SecretRepository implementation- Specified by:
getSecretRepositoryin interfaceSecretRepositoryProvider- Parameters:
identity- Identity KeyStoretrust- Trust KeyStore- Returns:
- A SecretRepository implementation
- See Also:
-
initProvider
public Map<String,SecretRepository> initProvider(Properties configurationProperties, String providerType) throws SecureVaultException Returns a map containing initialized secret repositories corresponds to a give provider type.- Specified by:
initProviderin interfaceSecretRepositoryProvider- Parameters:
configurationProperties- All the properties under secret configuration file.providerType- Type of the VaultSecretRepositoryProvider class.- Returns:
- Initialized secret repository map.
- Throws:
SecureVaultException- when creating the SecretRepository instances.
-
setProviderKeyStores
public void setProviderKeyStores(IdentityKeyStoreWrapper identityKeyStoreWrapper, TrustKeyStoreWrapper trustKeyStoreWrapper) Sets the identity key store wrapper and trust key store wrapper.- Parameters:
identityKeyStoreWrapper- The identity key store wrapper to be set.trustKeyStoreWrapper- The trust key store wrapper to be set.
-