mx4j.security
Class SimplePrincipal
java.lang.Object
|
+--mx4j.security.SimplePrincipal
- All Implemented Interfaces:
- java.security.Principal, java.io.Serializable
- public class SimplePrincipal
- extends java.lang.Object
- implements java.security.Principal, java.io.Serializable
Implementation of the Principal interface.
- See Also:
- Serialized Form
Constructor Summary |
SimplePrincipal(java.lang.String name)
Creates a new principal with the given name |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SimplePrincipal
public SimplePrincipal(java.lang.String name)
- Creates a new principal with the given name
getName
public java.lang.String getName()
- Specified by:
getName
in interface java.security.Principal
hashCode
public int hashCode()
- Specified by:
hashCode
in interface java.security.Principal
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object object)
- Specified by:
equals
in interface java.security.Principal
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Specified by:
toString
in interface java.security.Principal
- Overrides:
toString
in class java.lang.Object