
public final class UserPrincipal
extends java.lang.Object
implements java.security.Principal
| Constructor and Description |
|---|
UserPrincipal(java.lang.String name)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other)
Determine whether this object is equal to another.
|
boolean |
equals(UserPrincipal other)
Determine whether this object is equal to another.
|
java.lang.String |
getName()
Get the name of this principal.
|
int |
hashCode()
Get the hash code.
|
public UserPrincipal(java.lang.String name)
name - the name of the userpublic java.lang.String getName()
getName in interface java.security.Principalpublic int hashCode()
hashCode in interface java.security.PrincipalhashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in interface java.security.Principalequals in class java.lang.Objectother - the other objecttrue if they are equal, false otherwisepublic boolean equals(UserPrincipal other)
other - the other objecttrue if they are equal, false otherwiseCopyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved.