Credentials representation based on a user name / password
pair.
| Modifier and Type | Field and Description |
|---|---|
| private final char[] | |
| private final Principal | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | UsernamePasswordCredentials(final Principal
the user principal principal, final char[] the password password)The constructor with the username and password arguments. |
| public | UsernamePasswordCredentials(final String
the user name username, final char[] the password password)The constructor with the username and password arguments. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object
the reference object with which to compare. o)Overrides java. |
| public char[] | getPassword()
Implements org.
Deprecated
Use
getUserPassword().
|
| public String | |
| public char[] | |
| public Principal | |
| public int | |
| public String |
| password | back to summary |
|---|---|
| private final char[] password | |
| principal | back to summary |
|---|---|
| private final Principal principal | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| UsernamePasswordCredentials | back to summary |
|---|---|
| public UsernamePasswordCredentials(final Principal principal, final char[] password) The constructor with the username and password arguments.
| |
| UsernamePasswordCredentials | back to summary |
|---|---|
| public UsernamePasswordCredentials(final String username, final char[] password) The constructor with the username and password arguments.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getPassword | back to summary |
|---|---|
| public char[] getPassword() Implements org. Deprecated Use
| |
| getUserName | back to summary |
|---|---|
| public String getUserName() | |
| getUserPassword | back to summary |
|---|---|
public char[] getUserPassword()
| |
| getUserPrincipal | back to summary |
|---|---|
| public Principal getUserPrincipal() Implements org.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |