|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.security.struct.JPrincipal
public class JPrincipal
Implementation of Principal class.
Field Summary | |
---|---|
private java.lang.String |
name
Name of this principal. |
private static long |
serialVersionUID
UID for serialization. |
Constructor Summary | |
---|---|
JPrincipal(java.lang.String name)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object another)
Compares this principal to the specified object. |
java.lang.String |
getName()
Returns the name of this principal. |
int |
hashCode()
Returns a hashcode for this principal. |
java.lang.String |
toString()
Returns a string representation of this principal. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private java.lang.String name
Constructor Detail |
---|
public JPrincipal(java.lang.String name)
name
- the name of this principalMethod Detail |
---|
public boolean equals(java.lang.Object another)
equals
in interface java.security.Principal
equals
in class java.lang.Object
another
- principal to compare with.
public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
public int hashCode()
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object
public java.lang.String getName()
getName
in interface java.security.Principal
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |