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 InputStream
getInputStream
(CredentialConstants appConstants, String key, String defaultValue, String purpose) getSecret
(CredentialAlias alias) boolean
hasSecret
(CredentialAlias alias) void
initialize() 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:ISecretProvider
initialize() of an implementation can throw an exception when the credentialFactory cannot be properly configured and used.- Specified by:
initialize
in 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:
hasSecret
in interfaceISecretProvider
-
getSecret
- Specified by:
getSecret
in interfaceISecretProvider
- Throws:
NoSuchElementException
-
getConfiguredAliases
Description copied from interface:ISecretProvider
return a list of all configured aliases, or null if such a list cannot be provided.- Specified by:
getConfiguredAliases
in interfaceISecretProvider
-