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