Class AbstractMapCredentialFactory
java.lang.Object
org.frankframework.credentialprovider.AbstractMapCredentialFactory
- All Implemented Interfaces:
ISecretProvider
- Direct Known Subclasses:
AnsibleVaultCredentialFactory,PropertyFileCredentialFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreturn a list of all configured aliases, or null if such a list cannot be provided.getCredentialMap(CredentialConstants appConstants) protected InputStreamgetInputStream(CredentialConstants appConstants, String key, String defaultValue, String purpose) getSecret(CredentialAlias alias) booleanhasSecret(CredentialAlias alias) voidinitialize() of an implementation can throw an exception when the credentialFactory cannot be properly configured and used.
-
Constructor Details
-
AbstractMapCredentialFactory
public AbstractMapCredentialFactory()
-
-
Method Details
-
initialize
Description copied from interface:ISecretProviderinitialize() of an implementation can throw an exception when the credentialFactory cannot be properly configured and used.- Specified by:
initializein interfaceISecretProvider- Throws:
IOException
-
getCredentialMap
protected abstract Map<String,String> getCredentialMap(CredentialConstants appConstants) throws IOException - Throws:
IOException
-
getInputStream
protected InputStream getInputStream(CredentialConstants appConstants, String key, String defaultValue, String purpose) throws IOException - Throws:
IOException
-
hasSecret
- Specified by:
hasSecretin interfaceISecretProvider
-
getSecret
- Specified by:
getSecretin interfaceISecretProvider- Throws:
NoSuchElementException
-
getConfiguredAliases
Description copied from interface:ISecretProviderreturn a list of all configured aliases, or null if such a list cannot be provided.- Specified by:
getConfiguredAliasesin interfaceISecretProvider
-