org.mmbase.security
Class UserContext
java.lang.Object
|
+--org.mmbase.security.UserContext
- Direct Known Subclasses:
- ContextUserContext, NameContext
- public class UserContext
- extends java.lang.Object
This UserContext class provides a storage for the authentication
and authorization, so that information can be shared.
This class is NOT a container class for client related stuff, altrough
this is possible.
|
Method Summary |
java.lang.String |
getIdentifier()
Get the unique identifier for this user. |
java.lang.String |
getOwnerField()
Get the identifier to be used as the owner field value of
objects created by this user. |
Rank |
getRank()
Get the rank of this user. |
java.lang.String |
toString()
Get the string respresnetation of the user context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UserContext
public UserContext()
getIdentifier
public java.lang.String getIdentifier()
- Get the unique identifier for this user. This should be unique
for every different user on the system.
- Returns:
- a unique identifier for this user.
getOwnerField
public java.lang.String getOwnerField()
- Get the identifier to be used as the owner field value of
objects created by this user.
- Returns:
- an identifier for the owner field
getRank
public Rank getRank()
throws SecurityException
- Get the rank of this user.
- Returns:
- the user rank
toString
public java.lang.String toString()
- Get the string respresnetation of the user context.
- Overrides:
toString in class java.lang.Object
- Returns:
- a string describing the usercontext
MMBase 2002