|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.thetransactioncompany.jsonrpc2.server.MessageContext.BasicPrincipal
public class MessageContext.BasicPrincipal
Minimal implementation of the Principal
interface.
Constructor Summary | |
---|---|
MessageContext.BasicPrincipal(String name)
Creates a new principal. |
Method Summary | |
---|---|
boolean |
equals(Object another)
Checks for equality. |
String |
getName()
Returns the principal name. |
int |
hashCode()
Returns a hash code for this principal. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
toString |
Constructor Detail |
---|
public MessageContext.BasicPrincipal(String name)
name
- The principal name, must not be null
or
empty string.
IllegalArgumentException
- On a null
or empty
principal name.Method Detail |
---|
public boolean equals(Object another)
equals
in interface Principal
equals
in class Object
another
- The object to compare to.public int hashCode()
hashCode
in interface Principal
hashCode
in class Object
public String getName()
getName
in interface Principal
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |