X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.cms%2Fsrc%2Forg%2Fargeo%2Fcms%2Fauth%2FAuthConstants.java;h=a5a2d49d4a0816455ed4f393bf1046187b24402f;hb=255654a72d48b875d71cea637532784953d80499;hp=cd793332c9df769f7fcc40eaefc99a695a7dad8e;hpb=db7aecc7170c024e0e39135cf6b8aa6ce7569ccb;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 cd793332c..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; - }