org.mmbase.security.implementation.context
Class ContextUserContext

java.lang.Object
  extended byorg.mmbase.security.UserContext
      extended byorg.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.

Version:
$Id: ContextUserContext.java,v 1.4 2002/06/07 12:57:01 pierre Exp $
Author:
Eduard Witteveen

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()
          Gets the unique identifier for this user.
 java.lang.String getOwnerField()
          Gets the owner field value of new objects created by this user.
 Rank getRank()
          Gets 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
Gets the unique identifier for this user. This should be unique for every different user on the system.

Overrides:
getIdentifier in class UserContext
Returns:
A unique identifier for this user.

getOwnerField

public java.lang.String getOwnerField()
Description copied from class: UserContext
Gets the owner field value of new objects created by this user. The default implementation returns the user's identifier. This can be changed if the authorization implementation does not attribute rights to users directly ('context' implementations).

Overrides:
getOwnerField in class UserContext
Returns:
A possible value for the owner field

getRank

public Rank getRank()
Description copied from class: UserContext
Gets the rank of this user.

Overrides:
getRank in class UserContext
Returns:
the user rank


MMBase build 1.7.4.20050922