org.mmbase.security.implementation.context
Class ContextUserContext

java.lang.Object
  |
  +--org.mmbase.security.UserContext
        |
        +--org.mmbase.security.implementation.context.ContextUserContext

public class ContextUserContext
extends UserContext

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.


Field Summary
protected  MMBaseCop manager
          The SecurityManager, who (eventually) created this instance
 
Constructor Summary
ContextUserContext(java.lang.String username, Rank rank, long key, MMBaseCop manager)
           
 
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.
 
Methods inherited from class org.mmbase.security.UserContext
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

manager

protected MMBaseCop manager
The SecurityManager, who (eventually) created this instance
Constructor Detail

ContextUserContext

public ContextUserContext(java.lang.String username,
                          Rank rank,
                          long key,
                          MMBaseCop manager)
Method Detail

getIdentifier

public java.lang.String getIdentifier()
Description copied from class: UserContext
Get the unique identifier for this user. This should be unique for every different user on the system.
Overrides:
getIdentifier in class UserContext
Following copied from class: org.mmbase.security.UserContext
Returns:
a unique identifier for this user.

getOwnerField

public java.lang.String getOwnerField()
Description copied from class: UserContext
Get the identifier to be used as the owner field value of objects created by this user.
Overrides:
getOwnerField in class UserContext
Following copied from class: org.mmbase.security.UserContext
Returns:
an identifier for the owner field

getRank

public Rank getRank()
Description copied from class: UserContext
Get the rank of this user.
Overrides:
getRank in class UserContext
Following copied from class: org.mmbase.security.UserContext
Returns:
the user rank


MMBase 2002