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) boolean
hasSecret
(CredentialAlias alias) void
initialize() 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:ISecretProvider
initialize() of an implementation can throw an exception when the credentialFactory cannot be properly configured and used.- Specified by:
initialize
in interfaceISecretProvider
-
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
- Throws:
IOException
-