| java.lang.Object org.mmbase.security.BasicUser
All known Subclasses: org.mmbase.security.implementation.basic.NameContext, org.mmbase.security.implementation.context.ContextUserContext,
BasicUser | public class BasicUser implements UserContext(Code) | | A UserContext object is the result of an authentication, on which authorization can be
based. Normally your authorization/authentication implementation will also provide an extension
to this class.
This default implementation is the most simple one, actually implementing 'no authorization'
(because the rank is fixed to 'administrator').
This class is not necessarily also the container class for the client's credentials,
although this is possible.
author: Eduard Witteveen version: $Id: BasicUser.java,v 1.6 2008/03/17 15:37:59 michiel Exp $ |
authenticationType | final protected String authenticationType(Code) | | |
getAuthenticationType | public String getAuthenticationType()(Code) | | |
getIdentifier | public String getIdentifier()(Code) | | Gets the unique identifier for this user. This should be unique
for every different user on the system.
A unique identifier for this user. |
getOwnerField | public String getOwnerField()(Code) | | 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).
A possible value for the owner field |
hashCode | public int hashCode()(Code) | | |
isValid | public boolean isValid()(Code) | | |
toString | public String toString()(Code) | | Gets a string representation of this user context (for debugging)
a string describing the usercontext |
|
|