|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.lib.security.auth.JPrincipal
public class JPrincipal
Define a JOnAS principal
Constructor Summary | |
---|---|
JPrincipal(String name)
Constructor |
Method Summary | |
---|---|
boolean |
equals(Object another)
Compares this principal to the specified object. |
String |
getName()
Returns the name of this principal. |
int |
hashCode()
Returns a hashcode for this principal. |
String |
toString()
Returns a string representation of this principal. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JPrincipal(String name)
name
- the name of this principalMethod Detail |
---|
public boolean equals(Object another)
equals
in interface Principal
equals
in class Object
another
- principal to compare with.
public String toString()
toString
in interface Principal
toString
in class Object
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 |