|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.security.common.PrincipalImpl
public class PrincipalImpl
This class implements the principal interface.
| Constructor Summary | |
|---|---|
PrincipalImpl(java.lang.String user)
Construct a principal from a string user name. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object another)
This function returns true if the object passed matches the principal represented in this implementation |
java.lang.String |
getName()
Gets the name of the Principal as a java.lang.String |
int |
hashCode()
Returns the hashcode for this Principal object |
java.lang.String |
toString()
Prints a stringified version of the principal. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PrincipalImpl(java.lang.String user)
user - The string form of the principal name.| Method Detail |
|---|
public boolean equals(java.lang.Object another)
equals in interface java.security.Principalequals in class java.lang.Objectanother - the Principal to compare with.
public java.lang.String toString()
toString in interface java.security.PrincipaltoString in class java.lang.Objectpublic int hashCode()
hashCode in interface java.security.PrincipalhashCode in class java.lang.Objectpublic 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 | |||||||||