|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttyrex.security.container.RealmPrincipal
A realm principal. Holds the principal's name and realm, if known. The container will use this prinicipal to return the prinicipal's name to the application.
| Field Summary | |
static RealmPrincipal |
ANYONE
The principal 'anyone' indicates an unknown prinicipal. |
| Constructor Summary | |
RealmPrincipal(java.lang.String name,
java.lang.String realm)
Construct a new realm principal. |
|
| Method Summary | |
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getName()
Returns the name of the principal. |
java.lang.String |
getRealm()
Returns the realm of the prinicipal. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final RealmPrincipal ANYONE
| Constructor Detail |
public RealmPrincipal(java.lang.String name,
java.lang.String realm)
name - The principal's namerealm - The prinicipal's realm, null if not known| Method Detail |
public java.lang.String getName()
getName in interface java.security.Principalpublic java.lang.String getRealm()
public java.lang.String toString()
toString in interface java.security.Principalpublic int hashCode()
hashCode in interface java.security.Principalpublic boolean equals(java.lang.Object object)
equals in interface java.security.Principal
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||