public final class UserPrincipal extends Object implements Principal
Constructor and Description |
---|
UserPrincipal(String name)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Determine whether this object is equal to another.
|
boolean |
equals(UserPrincipal other)
Determine whether this object is equal to another.
|
String |
getName()
Get the name of this principal.
|
int |
hashCode()
Get the hash code.
|
public UserPrincipal(String name)
name
- the name of the userpublic String getName()
public int hashCode()
public boolean equals(Object other)
public boolean equals(UserPrincipal other)
other
- the other objecttrue
if they are equal, false
otherwiseCopyright © 2018 JBoss by Red Hat. All rights reserved.