Class FileSystemCredentialFactory
java.lang.Object
org.frankframework.credentialprovider.FileSystemCredentialFactory
- All Implemented Interfaces:
ISecretProvider
CredentialFactory implementation that reads secrets from the file system.
It reads the username and password from files in a directory. The directory is set by the property "credentialFactory.filesystem.root".
It reads the username from a file with the name set by the property "username" and the password from a file with the name set by the property "password". These values are relative to the "credentialFactory.filesystem.root"
By default, the default values username and password are used for these files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreturn a list of all configured aliases, or null if such a list cannot be provided.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
-
FileSystemCredentialFactory
public FileSystemCredentialFactory()
-
-
Method Details
-
initialize
public void 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
-
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- Throws:
IOException
-