01: /*
02:
03: This software is OSI Certified Open Source Software.
04: OSI Certified is a certification mark of the Open Source Initiative.
05:
06: The license (Mozilla version 1.0) can be read at the MMBase site.
07: See http://www.MMBase.org/license
08:
09: */
10:
11: package org.mmbase.security;
12:
13: /**
14: * This User interface defines the storage for the authentication
15: * and authorization, so that information can be shared.
16: * This interface is NOT a container class for client related stuff, altrough
17: * this is possible. Notice that after the login on the cloud it is not
18: * certain that you will receive the same User object back !
19: *
20: * @author Eduard Witteveen
21: * @version $Id: UserContext.java,v 1.17 2006/01/09 12:18:49 johannes Exp $
22: */
23: public interface UserContext extends java.io.Serializable {
24: /**
25: * Get the unique identifier for this user. This should be unique
26: * for every different user inside a cloud.
27: * @return an unique id for the current user
28: */
29: public String getIdentifier();
30:
31: /**
32: * Get the rank of this user.
33: * @return the rank of this user
34: */
35: public Rank getRank();
36:
37: /**
38: * Is valid
39: * @return <code>true</code> if the user is still valid.
40: * <code>false</code> if the user is expired..
41: */
42: public boolean isValid();
43:
44: /**
45: * Return the default owner field value for new nodes created by this user.
46: * @return owner field value
47: *
48: * @since MMBase-1.7
49: */
50: public String getOwnerField();
51:
52: /**
53: * Returns the original authentication type as specified in getCloud
54: * @return authentication type
55: *
56: * @since MMBase-1.7
57: * @see org.mmbase.bridge.CloudContext#getCloud
58: */
59: public String getAuthenticationType();
60:
61: }
|