public class FileSystemCredentialFactory extends Object implements ICredentialFactory
Modifier and Type | Field and Description |
---|---|
static String |
FILESYSTEM_ROOT_DEFAULT |
static String |
FILESYSTEM_ROOT_PROPERTY |
static String |
PASSWORD_FILE_DEFAULT |
static String |
PASSWORD_FILE_PROPERTY |
static String |
USERNAME_FILE_DEFAULT |
static String |
USERNAME_FILE_PROPERTY |
Constructor and Description |
---|
FileSystemCredentialFactory() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getConfiguredAliases()
return a list of all configured aliases, or null if such a list cannot be provided.
|
ICredentials |
getCredentials(String alias,
Supplier<String> defaultUsernameSupplier,
Supplier<String> defaultPasswordSupplier) |
boolean |
hasCredentials(String alias) |
void |
initialize()
initialize() of an implementation can throw an exception when the credentialFactory cannot be properly configured and used.
|
public static final String FILESYSTEM_ROOT_PROPERTY
public static final String USERNAME_FILE_PROPERTY
public static final String PASSWORD_FILE_PROPERTY
public static final String FILESYSTEM_ROOT_DEFAULT
public static final String USERNAME_FILE_DEFAULT
public static final String PASSWORD_FILE_DEFAULT
public void initialize()
ICredentialFactory
initialize
in interface ICredentialFactory
public boolean hasCredentials(String alias)
hasCredentials
in interface ICredentialFactory
public ICredentials getCredentials(String alias, Supplier<String> defaultUsernameSupplier, Supplier<String> defaultPasswordSupplier)
getCredentials
in interface ICredentialFactory
public List<String> getConfiguredAliases() throws Exception
ICredentialFactory
getConfiguredAliases
in interface ICredentialFactory
Exception
Copyright © 2023 Frank!Framework. All rights reserved.