]> git.argeo.org Git - lgpl/argeo-commons.git/blob - AuthConstants.java
cd793332c9df769f7fcc40eaefc99a695a7dad8e
[lgpl/argeo-commons.git] / AuthConstants.java
1 package org.argeo.cms.auth;
2
3 import org.argeo.node.NodeConstants;
4 import org.osgi.service.http.HttpContext;
5
6 /** Public properties of the CMS Kernel */
7 public interface AuthConstants {
8 // LOGIN CONTEXTS
9 /**
10 * @deprecated Use {@link NodeConstants#LOGIN_CONTEXT_USER} instead
11 */
12 final static String LOGIN_CONTEXT_USER = NodeConstants.LOGIN_CONTEXT_USER;
13 /**
14 * @deprecated Use {@link NodeConstants#LOGIN_CONTEXT_ANONYMOUS} instead
15 */
16 final static String LOGIN_CONTEXT_ANONYMOUS = NodeConstants.LOGIN_CONTEXT_ANONYMOUS;
17 /**
18 * @deprecated Use {@link NodeConstants#LOGIN_CONTEXT_DATA_ADMIN} instead
19 */
20 final static String LOGIN_CONTEXT_DATA_ADMIN = NodeConstants.LOGIN_CONTEXT_DATA_ADMIN;
21 /**
22 * @deprecated Use {@link NodeConstants#LOGIN_CONTEXT_SINGLE_USER} instead
23 */
24 final static String LOGIN_CONTEXT_SINGLE_USER = NodeConstants.LOGIN_CONTEXT_SINGLE_USER;
25
26 // RESERVED ROLES
27 // public final static String ROLE_KERNEL = "OU=node";
28 /**
29 * @deprecated Use {@link NodeConstants#ROLES_BASEDN} instead
30 */
31 public final static String ROLES_BASEDN = NodeConstants.ROLES_BASEDN;
32 /**
33 * @deprecated Use {@link NodeConstants#ROLE_ADMIN} instead
34 */
35 public final static String ROLE_ADMIN = NodeConstants.ROLE_ADMIN;
36 public final static String ROLE_GROUP_ADMIN = "cn=groupAdmin," + NodeConstants.ROLES_BASEDN;
37 /**
38 * @deprecated Use {@link NodeConstants#ROLE_USER_ADMIN} instead
39 */
40 public final static String ROLE_USER_ADMIN = NodeConstants.ROLE_USER_ADMIN;
41 // Special system groups that cannot be edited:
42 // user U anonymous = everyone
43 /**
44 * @deprecated Use {@link NodeConstants#ROLE_USER} instead
45 */
46 public final static String ROLE_USER = NodeConstants.ROLE_USER;
47 /**
48 * @deprecated Use {@link NodeConstants#ROLE_ANONYMOUS} instead
49 */
50 public final static String ROLE_ANONYMOUS = NodeConstants.ROLE_ANONYMOUS;
51
52 // SHARED STATE KEYS
53 // compatible with com.sun.security.auth.module.*LoginModule
54 // public static final String SHARED_STATE_USERNAME = "javax.security.auth.login.name";
55 // public static final String SHARED_STATE_PASSWORD = "javax.security.auth.login.password";
56 public static final String SHARED_STATE_AUTHORIZATION = HttpContext.AUTHORIZATION;
57
58 }