Class MessageContext.BasicPrincipal
java.lang.Object
com.thetransactioncompany.jsonrpc2.server.MessageContext.BasicPrincipal
- All Implemented Interfaces:
Principal
- Enclosing class:
- MessageContext
public class MessageContext.BasicPrincipal extends Object implements Principal
Minimal implementation of the
Principal
interface.-
Constructor Details
-
BasicPrincipal
Creates a new principal.- Parameters:
name- The principal name, must not benullor empty string.- Throws:
IllegalArgumentException- On anullor empty principal name.
-
-
Method Details