Class FileSystemCredentialFactory
- java.lang.Object
-
- org.frankframework.credentialprovider.FileSystemCredentialFactory
-
- All Implemented Interfaces:
ICredentialFactory
public class FileSystemCredentialFactory extends Object implements ICredentialFactory
-
-
Field Summary
Fields Modifier and Type Field Description static StringFILESYSTEM_ROOT_DEFAULTstatic StringFILESYSTEM_ROOT_PROPERTYstatic StringPASSWORD_FILE_DEFAULTstatic StringPASSWORD_FILE_PROPERTYstatic StringUSERNAME_FILE_DEFAULTstatic StringUSERNAME_FILE_PROPERTY
-
Constructor Summary
Constructors Constructor Description FileSystemCredentialFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getConfiguredAliases()return a list of all configured aliases, or null if such a list cannot be provided.ICredentialsgetCredentials(String alias, Supplier<String> defaultUsernameSupplier, Supplier<String> defaultPasswordSupplier)booleanhasCredentials(String alias)voidinitialize()initialize() of an implementation can throw an exception when the credentialFactory cannot be properly configured and used.
-
-
-
Field Detail
-
FILESYSTEM_ROOT_PROPERTY
public static final String FILESYSTEM_ROOT_PROPERTY
- See Also:
- Constant Field Values
-
USERNAME_FILE_PROPERTY
public static final String USERNAME_FILE_PROPERTY
- See Also:
- Constant Field Values
-
PASSWORD_FILE_PROPERTY
public static final String PASSWORD_FILE_PROPERTY
- See Also:
- Constant Field Values
-
FILESYSTEM_ROOT_DEFAULT
public static final String FILESYSTEM_ROOT_DEFAULT
- See Also:
- Constant Field Values
-
USERNAME_FILE_DEFAULT
public static final String USERNAME_FILE_DEFAULT
- See Also:
- Constant Field Values
-
PASSWORD_FILE_DEFAULT
public static final String PASSWORD_FILE_DEFAULT
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize()
Description copied from interface:ICredentialFactoryinitialize() of an implementation can throw an exception when the credentialFactory cannot be properly configured and used.- Specified by:
initializein interfaceICredentialFactory
-
hasCredentials
public boolean hasCredentials(String alias)
- Specified by:
hasCredentialsin interfaceICredentialFactory
-
getCredentials
public ICredentials getCredentials(String alias, Supplier<String> defaultUsernameSupplier, Supplier<String> defaultPasswordSupplier)
- Specified by:
getCredentialsin interfaceICredentialFactory
-
getConfiguredAliases
public List<String> getConfiguredAliases() throws Exception
Description copied from interface:ICredentialFactoryreturn a list of all configured aliases, or null if such a list cannot be provided.- Specified by:
getConfiguredAliasesin interfaceICredentialFactory- Throws:
Exception
-
-