Package com.atlassian.secrets
Class DefaultSecretStoreProvider
java.lang.Object
com.atlassian.secrets.DefaultSecretStoreProvider
- All Implemented Interfaces:
SecretStoreProvider
-
Field Summary
Fields inherited from interface com.atlassian.secrets.api.SecretStoreProvider
ATLASSIAN_PASSWORD_CIPHER_PROVIDER_PROPERTY_KEY, ATLASSIAN_PASSWORD_CIPHER_PROVIDER_XML_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInstance(String className) Uses reflection to obtain an instance of theSecretStoreimplementation.
-
Constructor Details
-
DefaultSecretStoreProvider
public DefaultSecretStoreProvider()
-
-
Method Details
-
getDefaultSecretStoreClassName
- Specified by:
getDefaultSecretStoreClassNamein interfaceSecretStoreProvider- Returns:
Base64SecretStore
-
getInstance
Uses reflection to obtain an instance of theSecretStoreimplementation.- Specified by:
getInstancein interfaceSecretStoreProvider- Parameters:
className- canonical name of theClasswhich implementsSecretStoreand should be initiated.- Returns:
- new instance of
SecretStorepacked inside Optional orOptional.empty()in case passed param is null or empty. - Throws:
IllegalArgumentException- in case ofClassNotFoundException,InstantiationExceptionorIllegalAccessException
-