tyrex.security.container
Class RealmPrincipal
java.lang.Object
|
+--tyrex.security.container.RealmPrincipal
- All Implemented Interfaces:
- java.security.Principal, java.io.Serializable
- public final class RealmPrincipal
- extends java.lang.Object
- implements java.security.Principal, java.io.Serializable
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.
- Version:
- $Revision: 1.5 $ $Date: 2001/03/19 17:39:02 $
- Author:
- Assaf Arkin
- See Also:
- Serialized Form
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 |
ANYONE
public static final RealmPrincipal ANYONE
- The principal 'anyone' indicates an unknown prinicipal.
RealmPrincipal
public RealmPrincipal(java.lang.String name,
java.lang.String realm)
- Construct a new realm principal.
- Parameters:
name
- The principal's namerealm
- The prinicipal's realm, null if not known
getName
public java.lang.String getName()
- Returns the name of the principal.
- Specified by:
getName
in interface java.security.Principal
- Returns:
- The prinicipal's name
getRealm
public java.lang.String getRealm()
- Returns the realm of the prinicipal. If the principal's
realm is unknown, returns null.
- Returns:
- The principal's realm or null
toString
public java.lang.String toString()
- Specified by:
toString
in interface java.security.Principal
- Overrides:
toString
in class java.lang.Object
hashCode
public int hashCode()
- Specified by:
hashCode
in interface java.security.Principal
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object object)
- Specified by:
equals
in interface java.security.Principal
- Overrides:
equals
in class java.lang.Object
Intalio Inc. (C) 1999-2001. All rights reserved.