public abstract class MapCredentialFactory extends Object implements ICredentialFactory
Modifier and Type | Field and Description |
---|---|
static String |
PASSWORD_SUFFIX_DEFAULT |
String |
PASSWORD_SUFFIX_PROPERTY |
static String |
USERNAME_SUFFIX_DEFAULT |
String |
USERNAME_SUFFIX_PROPERTY |
Constructor and Description |
---|
MapCredentialFactory() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getConfiguredAliases()
return a list of all configured aliases, or null if such a list cannot be provided.
|
protected abstract Map<String,String> |
getCredentialMap(CredentialConstants appConstants) |
ICredentials |
getCredentials(String alias,
Supplier<String> defaultUsernameSupplier,
Supplier<String> defaultPasswordSupplier) |
protected InputStream |
getInputStream(CredentialConstants appConstants,
String key,
String defaultValue,
String purpose) |
protected abstract String |
getPropertyBase() |
boolean |
hasCredentials(String alias) |
void |
initialize()
initialize() of an implementation can throw an exception when the credentialFactory cannot be properly configured and used.
|
public final String USERNAME_SUFFIX_PROPERTY
public final String PASSWORD_SUFFIX_PROPERTY
public static final String USERNAME_SUFFIX_DEFAULT
public static final String PASSWORD_SUFFIX_DEFAULT
public void initialize() throws IOException
ICredentialFactory
initialize
in interface ICredentialFactory
IOException
protected abstract String getPropertyBase()
protected abstract Map<String,String> getCredentialMap(CredentialConstants appConstants) throws IOException
IOException
protected InputStream getInputStream(CredentialConstants appConstants, String key, String defaultValue, String purpose) throws IOException
IOException
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 Set<String> getConfiguredAliases() throws Exception
ICredentialFactory
getConfiguredAliases
in interface ICredentialFactory
Exception
Copyright © 2023 Frank!Framework. All rights reserved.