[jboss-cvs] JBossAS SVN: r59499 - projects/security/security-jboss-sx/trunk/src/main/org/jboss/security.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Jan 10 22:37:04 EST 2007


Author: anil.saldhana at jboss.com
Date: 2007-01-10 22:37:03 -0500 (Wed, 10 Jan 2007)
New Revision: 59499

Added:
   projects/security/security-jboss-sx/trunk/src/main/org/jboss/security/SecurityConstants.java
Log:
security constants

Added: projects/security/security-jboss-sx/trunk/src/main/org/jboss/security/SecurityConstants.java
===================================================================
--- projects/security/security-jboss-sx/trunk/src/main/org/jboss/security/SecurityConstants.java	2007-01-10 23:15:18 UTC (rev 59498)
+++ projects/security/security-jboss-sx/trunk/src/main/org/jboss/security/SecurityConstants.java	2007-01-11 03:37:03 UTC (rev 59499)
@@ -0,0 +1,105 @@
+/*
+  * JBoss, Home of Professional Open Source
+  * Copyright 2005, JBoss Inc., and individual contributors as indicated
+  * by the @authors tag. See the copyright.txt in the distribution for a
+  * full listing of individual contributors.
+  *
+  * This is free software; you can redistribute it and/or modify it
+  * under the terms of the GNU Lesser General Public License as
+  * published by the Free Software Foundation; either version 2.1 of
+  * the License, or (at your option) any later version.
+  *
+  * This software is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+  * Lesser General Public License for more details.
+  *
+  * You should have received a copy of the GNU Lesser General Public
+  * License along with this software; if not, write to the Free
+  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+  */
+package org.jboss.security;
+
+//$Id: SecurityConstants.java 58038 2006-11-03 04:39:59Z anil.saldhana at jboss.com $
+
+/**
+ *  Defines Constants for usage in the Security Layer
+ *  @author <a href="mailto:Anil.Saldhana at jboss.org">Anil Saldhana</a>
+ *  @since  Dec 30, 2005 
+ *  @version $Revision: 58038 $
+ */
+public interface SecurityConstants
+{
+   /**
+    * Default Application Policy 
+    */
+   String DEFAULT_APPLICATION_POLICY = "other";
+   
+   /**
+    * Default JAAS based Security Domain Context
+    */
+   String JAAS_CONTEXT_ROOT = "java:/jaas";
+   
+   /**
+    * Default JASPI based Security Domain Context
+    */
+   String JASPI_CONTEXT_ROOT = "java:/jbsx";
+   
+   /**
+    * The String option name used to pass in the security-domain 
+    * name the LoginModule was configured in.
+    */
+   String SECURITY_DOMAIN_OPTION = "jboss.security.security_domain";
+
+   /**
+    * Default Authorization Manager context
+    */
+   String AUTHORIZATION_PATH = "java:/authorizationMgr";
+   
+   /**
+    * Default ServerAuthModule that delegates to a Login Module Stack
+    */
+   String JASPI_DELEGATING_MODULE = "org.jboss.security.auth.container.modules.DelegatingServerAuthModule";
+   
+   /**
+    * Default JASPI based secutity manager
+    */
+   String JASPI_AUTHENTICATION_MANAGER = "org.jboss.security.plugins.JASPISecurityManager";
+   
+   /**
+    * Default AuthorizationManager implementation, the AuthorizationManager service uses
+    * 
+    */
+   String DEFAULT_AUTHORIZATION_CLASS = "org.jboss.security.plugins.JBossAuthorizationManager";
+   
+   /**
+    * Message Layers
+    */
+   String SERVLET_LAYER = "HttpServlet";
+   
+   String CONTEXT_ID = "jboss.contextid";
+   
+   /**
+    * Application Policy driving the web authorization layer
+    */
+   String DEFAULT_WEB_APPLICATION_POLICY = "jboss-web-policy";
+   
+   /**
+    * Application Policy driving the ejb authorization layer
+    */
+   String DEFAULT_EJB_APPLICATION_POLICY = "jboss-ejb-policy";
+   
+   
+   /** Policy Context Constants **/
+   String SUBJECT_CONTEXT_KEY = "javax.security.auth.Subject.container";
+   String WEB_REQUEST_KEY = "javax.servlet.http.HttpServletRequest";
+   
+   String RUNAS_IDENTITY_IDENTIFIER = "RunAsIdentity";
+   String ROLES_IDENTIFIER = "Roles";
+   String PRINCIPAL_IDENTIFIER = "Principal";
+   String PRINCIPALS_SET_IDENTIFIER = "PrincipalsSet"; 
+   String DEPLOYMENT_PRINCIPAL_ROLES_MAP = "deploymentPrincipalRolesMap";
+   
+   String SECURITY_CONTEXT = "SecurityContext";
+}




More information about the jboss-cvs-commits mailing list