Package nl.nn.adapterframework.util
Class CredentialFactory
- java.lang.Object
-
- nl.nn.adapterframework.util.CredentialFactory
-
public class CredentialFactory extends Object
Provides user-id and password from the WebSphere authentication-alias repository. A default username and password can be set, too. Note: In WSAD the aliases are named just as you type them. In WebSphere 5 and 6, and in RAD7/RSA7 aliases are prefixed with the name of the server. It is therefore sensible to use a environment setting to find the name of the alias.- Since:
- 4.4.2
- Author:
- Gerrit van Brakel
-
-
Constructor Summary
Constructors Constructor Description CredentialFactory(String alias)
CredentialFactory(String alias, String defaultUsername, String defaultPassword)
CredentialFactory(String alias, Supplier<String> defaultUsernameSupplier, Supplier<String> defaultPasswordSupplier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAlias()
static Collection<String>
getConfiguredAliases()
String
getPassword()
String
getUsername()
String
toString()
-