Class MessageContext.BasicPrincipal
java.lang.Object
com.thetransactioncompany.jsonrpc2.server.MessageContext.BasicPrincipal
- All Implemented Interfaces:
Principal
- Enclosing class:
MessageContext
Minimal implementation of the
Principal
interface.-
Constructor Details
-
BasicPrincipal
Creates a new principal.- Parameters:
name
- The principal name, must not benull
or empty string.- Throws:
IllegalArgumentException
- On anull
or empty principal name.
-
-
Method Details
-
equals
Checks for equality. -
hashCode
public int hashCode()Returns a hash code for this principal. -
getName
Returns the principal name.
-