public class PasswordOnlyCredential extends Credential
| Constructor and Description |
|---|
PasswordOnlyCredential(String alias, char[] password)
Creates a PasswordOnlyCredential object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getUsername()
Returns the user ID, if any associated with this Credential.
|
void |
setUsername(String userName)
Sets the user ID associated with this Credential.
|
equals, getAlias, getCoveredPassword, getPassword, getSecretCover, getType, hashCode, isPassphraseCredential, isUserCredential, setAlias, setPassword, setSecretCover, toStringpublic static final String NO_USER
public PasswordOnlyCredential(String alias, char[] password) throws FMWCredentialsException
alias - the alias to be used for the passwordpassword - the password to be usedFMWCredentialsException - if an error occurspublic String getUsername()
CredentialgetUsername in class Credentialpublic void setUsername(String userName) throws FMWCredentialsException
CredentialsetUsername in class CredentialuserName - the user IDFMWCredentialsException - if an error occurs