public class MessageContext.BasicPrincipal extends Object implements Principal
Principal
interface.Constructor and Description |
---|
MessageContext.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 MessageContext.BasicPrincipal(String name)
name
- The principal name, must not be null
or
empty string.IllegalArgumentException
- On a null
or empty
principal name.Copyright © 2015 The Transaction Company. All Rights Reserved.