|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objecttyrex.security.container.RealmPrincipal
public final class 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.PrincipaltoString in class java.lang.Objectpublic int hashCode()
hashCode in interface java.security.PrincipalhashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in interface java.security.Principalequals in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||