public class MessageContext.BasicPrincipal extends Object implements Principal
Principal
interface.| Constructor and Description |
|---|
BasicPrincipal(String name)
Creates a new principal.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object another)
Checks for equality.
|
String |
getName()
Returns the principal name.
|
int |
hashCode()
Returns a hash code for this principal.
|
public BasicPrincipal(String name)
name - The principal name, must not be null or
empty string.IllegalArgumentException - On a null or empty
principal name.