public abstract class Credential extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAlias()
Returns the alias associated with this credential.
|
String |
getCoveredPassword()
Creates a protected password string using the secret cover rather than the actual passwword characters.
|
char[] |
getPassword()
Returns the password associated with this credential.
|
String |
getSecretCover()
Returns the secret cover used to protect displayed passwords.
|
oracle.fmwplatform.credentials.credential.Credential.CredentialType |
getType()
Returns the type of this Credential.
|
abstract String |
getUsername()
Returns the user ID, if any associated with this Credential.
|
int |
hashCode() |
boolean |
isPassphraseCredential()
Determines if this Credential uses a pass phrase.
|
boolean |
isUserCredential()
Determines if this Credential requires a user ID.
|
void |
setAlias(String alias)
Sets the alias associated with this Credential.
|
void |
setPassword(char[] password)
Sets the password associated with this Credential.
|
void |
setSecretCover(String cover)
Sets the secret cover used to protect passwords.
|
abstract void |
setUsername(String userName)
Sets the user ID associated with this Credential.
|
String |
toString() |
public String getAlias()
public char[] getPassword()
public abstract String getUsername()
public void setAlias(String alias) throws FMWCredentialsException
alias
- the alias valueFMWCredentialsException
- if an error occurspublic void setPassword(char[] password) throws FMWCredentialsException
password
- the passwordFMWCredentialsException
- if an error occurspublic abstract void setUsername(String userName) throws FMWCredentialsException
userName
- the user IDFMWCredentialsException
- if an error occurspublic oracle.fmwplatform.credentials.credential.Credential.CredentialType getType()
public boolean isPassphraseCredential()
public boolean isUserCredential()
public String getSecretCover()
public void setSecretCover(String cover)
cover
- the secret coverpublic String getCoveredPassword()