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(AppConstants appConstants) |
ICredentials |
getCredentials(String alias,
String defaultUsername,
String defaultPassword) |
protected InputStream |
getInputStream(AppConstants 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
ICredentialFactoryinitialize in interface ICredentialFactoryIOExceptionprotected abstract String getPropertyBase()
protected abstract Map<String,String> getCredentialMap(AppConstants appConstants) throws MalformedURLException, IOException
MalformedURLExceptionIOExceptionprotected InputStream getInputStream(AppConstants appConstants, String key, String defaultValue, String purpose) throws IOException
IOExceptionpublic boolean hasCredentials(String alias)
hasCredentials in interface ICredentialFactorypublic ICredentials getCredentials(String alias, String defaultUsername, String defaultPassword)
getCredentials in interface ICredentialFactorypublic Set<String> getConfiguredAliases() throws Exception
ICredentialFactorygetConfiguredAliases in interface ICredentialFactoryExceptionCopyright © 2023 Frank!Framework. All rights reserved.