X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.cms%2Fsrc%2Forg%2Fargeo%2Fcms%2Fauth%2FAuthConstants.java;h=a5a2d49d4a0816455ed4f393bf1046187b24402f;hb=a847fccbcfed504b2526c137a46d1e0238c28cf5;hp=a0ceec0693f315249127a997c10a08d5c5690891;hpb=fd8f2c91e47d38445ba9702b40559939162f666d;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.cms/src/org/argeo/cms/auth/AuthConstants.java b/org.argeo.cms/src/org/argeo/cms/auth/AuthConstants.java index a0ceec069..a5a2d49d4 100644 --- a/org.argeo.cms/src/org/argeo/cms/auth/AuthConstants.java +++ b/org.argeo.cms/src/org/argeo/cms/auth/AuthConstants.java @@ -1,10 +1,13 @@ package org.argeo.cms.auth; import org.argeo.node.NodeConstants; -import org.osgi.service.http.HttpContext; /** Public properties of the CMS Kernel */ -public interface AuthConstants { +interface AuthConstants { + + static final String SHARED_STATE_USERNAME = "javax.security.auth.login.name"; + static final String SHARED_STATE_PASSWORD = "javax.security.auth.login.password"; + // LOGIN CONTEXTS /** * @deprecated Use {@link NodeConstants#LOGIN_CONTEXT_USER} instead @@ -13,7 +16,7 @@ public interface AuthConstants { /** * @deprecated Use {@link NodeConstants#LOGIN_CONTEXT_ANONYMOUS} instead */ - final static String LOGIN_CONTEXT_ANONYMOUS = NodeConstants.LOGIN_CONTEXT_ANONYMOUS; +// final static String LOGIN_CONTEXT_ANONYMOUS = NodeConstants.LOGIN_CONTEXT_ANONYMOUS; /** * @deprecated Use {@link NodeConstants#LOGIN_CONTEXT_DATA_ADMIN} instead */ @@ -24,11 +27,11 @@ public interface AuthConstants { final static String LOGIN_CONTEXT_SINGLE_USER = NodeConstants.LOGIN_CONTEXT_SINGLE_USER; // RESERVED ROLES - // public final static String ROLE_KERNEL = "OU=node"; - /** - * @deprecated Use {@link NodeConstants#ROLES_BASEDN} instead - */ - public final static String ROLES_BASEDN = NodeConstants.ROLES_BASEDN; + // public final static String ROLE_KERNEL = "OU=node"; + /** + * @deprecated Use {@link NodeConstants#ROLES_BASEDN} instead + */ + public final static String ROLES_BASEDN = NodeConstants.ROLES_BASEDN; /** * @deprecated Use {@link NodeConstants#ROLE_ADMIN} instead */ @@ -49,10 +52,4 @@ public interface AuthConstants { */ public final static String ROLE_ANONYMOUS = NodeConstants.ROLE_ANONYMOUS; - // SHARED STATE KEYS - // compatible with com.sun.security.auth.module.*LoginModule - public static final String SHARED_STATE_USERNAME = "javax.security.auth.login.name"; - public static final String SHARED_STATE_PASSWORD = "javax.security.auth.login.password"; - public static final String SHARED_STATE_AUTHORIZATION = HttpContext.AUTHORIZATION; - }