org.mmbase.security
Interface UserContext

All Superinterfaces:
Serializable
All Known Implementing Classes:
Authenticate.LocalAdmin, BasicUser, ContextUserContext, NameContext, User

public interface UserContext
extends Serializable

This User interface defines the storage for the authentication and authorization, so that information can be shared. This interface is NOT a container class for client related stuff, altrough this is possible. Notice that after the login on the cloud it is not certain that you will receive the same User object back !

Version:
$Id: UserContext.java,v 1.17 2006/01/09 12:18:49 johannes Exp $
Author:
Eduard Witteveen

Method Summary
 String getAuthenticationType()
          Returns the original authentication type as specified in getCloud
 String getIdentifier()
          Get the unique identifier for this user.
 String getOwnerField()
          Return the default owner field value for new nodes created by this user.
 Rank getRank()
          Get the rank of this user.
 boolean isValid()
          Is valid
 

Method Detail

getIdentifier

String getIdentifier()
Get the unique identifier for this user. This should be unique for every different user inside a cloud.

Returns:
an unique id for the current user

getRank

Rank getRank()
Get the rank of this user.

Returns:
the rank of this user

isValid

boolean isValid()
Is valid

Returns:
true if the user is still valid. false if the user is expired..

getOwnerField

String getOwnerField()
Return the default owner field value for new nodes created by this user.

Returns:
owner field value
Since:
MMBase-1.7

getAuthenticationType

String getAuthenticationType()
Returns the original authentication type as specified in getCloud

Returns:
authentication type
Since:
MMBase-1.7
See Also:
CloudContext.getCloud(java.lang.String)


MMBase build 1.9.0.20081107