| Access | Constructor and Description |
|---|---|
| public | HttpPrincipal(String
the name of the user within the realm username, String the realm for this user realm)Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true or false depending on whether objects are
equal or notthe object to compare this instance of another)HttpPrincipal againstOverrides java. Implements java. Compare two instances of |
| public String | Returns: the contents of this principal in the form realm:usernameImplements java. Returns the contents of this principal in the form realm:username. |
| public String | Returns: the realm associated with this objectReturns the |
| public String | Returns: the name of the user associated with this objectReturns the |
| public int | Returns: the hashcode for this objectOverrides java. Implements java. Returns a hashcode for this |
| public String | Returns: the name associated with this objectOverrides java. Implements java. Returns the same string as |
| realm | back to summary |
|---|---|
| private String realm | |
| username | back to summary |
|---|---|
| private String username | |
| HttpPrincipal | back to summary |
|---|---|
| public HttpPrincipal(String username, String realm) Creates a
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object another) Overrides java. Implements java. Compare two instances of
| |
| getName | back to summary |
|---|---|
| public String getName() Implements java. Returns the contents of this principal in the form realm:username.
| |
| getRealm | back to summary |
|---|---|
| public String getRealm() Returns the
| |
| getUsername | back to summary |
|---|---|
| public String getUsername() Returns the
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Returns a hashcode for this
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements java. Returns the same string as
| |