public class CredentialFactory extends Object
| Constructor and Description |
|---|
CredentialFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Credential |
getInstance(String alias,
char[] password)
Return a new instance of Credential object
|
static Credential |
getInstance(String alias,
String userName,
char[] password)
Return a new instance of Credential object
|
public static Credential getInstance(String alias, char[] password) throws FMWCredentialsException
alias - The alias of the new credential objectpassword - The password of the new credential objectFMWCredentialsException - an error occurred getting the Credential objectpublic static Credential getInstance(String alias, String userName, char[] password) throws FMWCredentialsException
alias - The alias of the new credential objectuserName - The userName of the new credential objectpassword - The password of the new credential objectFMWCredentialsException - an error occurred getting the Credential object