1 package org
.argeo
.cms
.auth
;
3 import org
.argeo
.node
.NodeConstants
;
4 import org
.osgi
.service
.http
.HttpContext
;
6 /** Public properties of the CMS Kernel */
7 public interface AuthConstants
{
10 * @deprecated Use {@link NodeConstants#LOGIN_CONTEXT_USER} instead
12 final static String LOGIN_CONTEXT_USER
= NodeConstants
.LOGIN_CONTEXT_USER
;
14 * @deprecated Use {@link NodeConstants#LOGIN_CONTEXT_ANONYMOUS} instead
16 final static String LOGIN_CONTEXT_ANONYMOUS
= NodeConstants
.LOGIN_CONTEXT_ANONYMOUS
;
18 * @deprecated Use {@link NodeConstants#LOGIN_CONTEXT_DATA_ADMIN} instead
20 final static String LOGIN_CONTEXT_DATA_ADMIN
= NodeConstants
.LOGIN_CONTEXT_DATA_ADMIN
;
22 * @deprecated Use {@link NodeConstants#LOGIN_CONTEXT_SINGLE_USER} instead
24 final static String LOGIN_CONTEXT_SINGLE_USER
= NodeConstants
.LOGIN_CONTEXT_SINGLE_USER
;
27 // public final static String ROLE_KERNEL = "OU=node";
29 * @deprecated Use {@link NodeConstants#ROLES_BASEDN} instead
31 public final static String ROLES_BASEDN
= NodeConstants
.ROLES_BASEDN
;
33 * @deprecated Use {@link NodeConstants#ROLE_ADMIN} instead
35 public final static String ROLE_ADMIN
= NodeConstants
.ROLE_ADMIN
;
36 public final static String ROLE_GROUP_ADMIN
= "cn=groupAdmin," + NodeConstants
.ROLES_BASEDN
;
38 * @deprecated Use {@link NodeConstants#ROLE_USER_ADMIN} instead
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
44 * @deprecated Use {@link NodeConstants#ROLE_USER} instead
46 public final static String ROLE_USER
= NodeConstants
.ROLE_USER
;
48 * @deprecated Use {@link NodeConstants#ROLE_ANONYMOUS} instead
50 public final static String ROLE_ANONYMOUS
= NodeConstants
.ROLE_ANONYMOUS
;
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
;