Credentials implementation based on a user name / password
pair.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final BasicUserPrincipal | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | UsernamePasswordCredentials(final String
the username:password formed string usernamePassword)
Deprecated
(4.5) will be replaced with
The constructor with the username and password combined string argument.
String, char[] in 5.0
|
| public | UsernamePasswordCredentials(final String
the user name userName, final String 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 String | |
| public String | |
| public Principal | |
| public int | |
| public String |
| password | back to summary |
|---|---|
| private final String password | |
| principal | back to summary |
|---|---|
| private final BasicUserPrincipal principal | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| UsernamePasswordCredentials | back to summary |
|---|---|
| public UsernamePasswordCredentials(final String usernamePassword)
Deprecated (4.5) will be replaced with The constructor with the username and password combined string argument. | |
| UsernamePasswordCredentials | back to summary |
|---|---|
| public UsernamePasswordCredentials(final String userName, final String 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 String getPassword() Implements org.
| |
| getUserName | back to summary |
|---|---|
| public String getUserName() | |
| 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. | |