org.mmbase.security.implementation.context
Class ContextUserContext

Package class diagram package ContextUserContext
java.lang.Object
  extended by org.mmbase.security.BasicUser
      extended by org.mmbase.security.implementation.context.ContextUserContext
All Implemented Interfaces:
Serializable, Comparable<Object>, UserContext

public class ContextUserContext
extends BasicUser
implements Serializable

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 45150 2011-02-10 09:18:12Z michiel $
Author:
Eduard Witteveen
See Also:
Serialized Form

Field Summary
protected  MMBaseCop manager
          The SecurityManager, who (eventually) created this instance
 
Fields inherited from class org.mmbase.security.BasicUser
authentication, authenticationType
 
Constructor Summary
ContextUserContext(String username, Rank rank, long key, MMBaseCop manager, String app)
           
 
Method Summary
 boolean equals(Object o)
           
 String getIdentifier()
           
(package private)  long getKey()
           
 String getOwnerField()
           
 Rank getRank()
           
 int hashCode()
           
 
Methods inherited from class org.mmbase.security.BasicUser
compareTo, getAuthenticationType, isValid, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

manager

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

Constructor Detail

ContextUserContext

public ContextUserContext(String username,
                          Rank rank,
                          long key,
                          MMBaseCop manager,
                          String app)
Method Detail

getIdentifier

public String getIdentifier()
Specified by:
getIdentifier in interface UserContext
Overrides:
getIdentifier in class BasicUser

getOwnerField

public String getOwnerField()
Specified by:
getOwnerField in interface UserContext
Overrides:
getOwnerField in class BasicUser

getRank

public Rank getRank()
Specified by:
getRank in interface UserContext
Overrides:
getRank in class BasicUser

getKey

long getKey()

hashCode

public int hashCode()
Overrides:
hashCode in class BasicUser

equals

public boolean equals(Object o)
Overrides:
equals in class BasicUser


MMBase2 Core 2.0-SNAPSHOT - 2013-03-30T06:36