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