Class AbstractMapCredentialFactory
java.lang.Object
org.frankframework.credentialprovider.AbstractMapCredentialFactory
- All Implemented Interfaces:
ICredentialFactory
- 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) getCredentials
(String alias, Supplier<String> defaultUsernameSupplier, Supplier<String> defaultPasswordSupplier) protected InputStream
getInputStream
(CredentialConstants appConstants, String key, String defaultValue, String purpose) protected abstract String
boolean
hasCredentials
(String 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:ICredentialFactory
initialize() of an implementation can throw an exception when the credentialFactory cannot be properly configured and used.- Specified by:
initialize
in interfaceICredentialFactory
- Throws:
IOException
-
getPropertyBase
-
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
-
hasCredentials
- Specified by:
hasCredentials
in interfaceICredentialFactory
-
getCredentials
public ICredentials getCredentials(String alias, Supplier<String> defaultUsernameSupplier, Supplier<String> defaultPasswordSupplier) - Specified by:
getCredentials
in interfaceICredentialFactory
-
getConfiguredAliases
Description copied from interface:ICredentialFactory
return a list of all configured aliases, or null if such a list cannot be provided.- Specified by:
getConfiguredAliases
in interfaceICredentialFactory
- Throws:
Exception
-