[jboss-cvs] JBossAS SVN: r63148 - in trunk/tomcat/src/main/org/jboss/web/tomcat/security: authorization and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri May 18 11:00:00 EDT 2007


Author: anil.saldhana at jboss.com
Date: 2007-05-18 11:00:00 -0400 (Fri, 18 May 2007)
New Revision: 63148

Removed:
   trunk/tomcat/src/main/org/jboss/web/tomcat/security/authorization/WebResource.java
   trunk/tomcat/src/main/org/jboss/web/tomcat/security/authorization/delegates/WebPolicyModuleDelegate.java
   trunk/tomcat/src/main/org/jboss/web/tomcat/security/authorization/modules/
Modified:
   trunk/tomcat/src/main/org/jboss/web/tomcat/security/JBossExtendedSecurityMgrRealm.java
   trunk/tomcat/src/main/org/jboss/web/tomcat/security/JBossWebRealm.java
Log:
move the web resource to security project

Modified: trunk/tomcat/src/main/org/jboss/web/tomcat/security/JBossExtendedSecurityMgrRealm.java
===================================================================
--- trunk/tomcat/src/main/org/jboss/web/tomcat/security/JBossExtendedSecurityMgrRealm.java	2007-05-18 14:59:07 UTC (rev 63147)
+++ trunk/tomcat/src/main/org/jboss/web/tomcat/security/JBossExtendedSecurityMgrRealm.java	2007-05-18 15:00:00 UTC (rev 63148)
@@ -53,7 +53,7 @@
 import org.jboss.security.SimplePrincipal;
 import org.jboss.security.auth.message.HttpServletAuthParam;
 import org.jboss.security.authorization.AuthorizationContext;  
-import org.jboss.web.tomcat.security.authorization.WebResource;
+import org.jboss.security.authorization.resources.WebResource;
 
 //$Id$
 

Modified: trunk/tomcat/src/main/org/jboss/web/tomcat/security/JBossWebRealm.java
===================================================================
--- trunk/tomcat/src/main/org/jboss/web/tomcat/security/JBossWebRealm.java	2007-05-18 14:59:07 UTC (rev 63147)
+++ trunk/tomcat/src/main/org/jboss/web/tomcat/security/JBossWebRealm.java	2007-05-18 15:00:00 UTC (rev 63148)
@@ -66,8 +66,8 @@
 import org.jboss.security.auth.certs.SubjectDNMapping;
 import org.jboss.security.authorization.AuthorizationContext;
 import org.jboss.security.authorization.AuthorizationException; 
-import org.jboss.security.authorization.ResourceKeys; 
-import org.jboss.web.tomcat.security.authorization.WebResource;
+import org.jboss.security.authorization.ResourceKeys;  
+import org.jboss.security.authorization.resources.WebResource;
 
 //$Id$
 

Deleted: trunk/tomcat/src/main/org/jboss/web/tomcat/security/authorization/WebResource.java
===================================================================
--- trunk/tomcat/src/main/org/jboss/web/tomcat/security/authorization/WebResource.java	2007-05-18 14:59:07 UTC (rev 63147)
+++ trunk/tomcat/src/main/org/jboss/web/tomcat/security/authorization/WebResource.java	2007-05-18 15:00:00 UTC (rev 63148)
@@ -1,91 +0,0 @@
-/*
-  * 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.web.tomcat.security.authorization;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.jboss.security.authorization.Resource;
-import org.jboss.security.authorization.ResourceType;
-
-//$Id$
-
-/**
- *  Represents a Resource for the Web Layer
- *  @author <a href="mailto:Anil.Saldhana at jboss.org">Anil Saldhana</a>
- *  @since  Jun 18, 2006 
- *  @version $Revision$
- */
-public class WebResource implements Resource
-{
-   private Map map = new HashMap();
-   
-   /**
-    * Create a new WebResource.
-    */
-   public WebResource()
-   {   
-   }
-   
-   /**
-    * 
-    * Create a new WebResource.
-    * 
-    * @param map Contextual Map
-    */
-   public WebResource(Map map)
-   {
-      this.map = map;
-   }
-
-   /**
-    * @see Resource#getLayer()
-    */
-   public ResourceType getLayer()
-   {
-      return ResourceType.WEB;
-   }
-
-   /**
-    * @see Resource#getMap()
-    */
-   public Map getMap()
-   {
-      return map;
-   }
- 
-   /**
-    * Set the contextual map
-    * @param m Contextual Map
-    */
-   public void setMap(Map m)
-   {
-      this.map = m;
-   } 
-   
-   public String toString()
-   {
-      StringBuffer buf = new StringBuffer();
-      buf.append("[").append(getClass().getName()).append(":contextMap=").append(map).append("]");
-      return buf.toString();
-   }
-}

Deleted: trunk/tomcat/src/main/org/jboss/web/tomcat/security/authorization/delegates/WebPolicyModuleDelegate.java
===================================================================
--- trunk/tomcat/src/main/org/jboss/web/tomcat/security/authorization/delegates/WebPolicyModuleDelegate.java	2007-05-18 14:59:07 UTC (rev 63147)
+++ trunk/tomcat/src/main/org/jboss/web/tomcat/security/authorization/delegates/WebPolicyModuleDelegate.java	2007-05-18 15:00:00 UTC (rev 63148)
@@ -1,52 +0,0 @@
-/*
-  * 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.web.tomcat.security.authorization.delegates;
-
-import org.jboss.logging.Logger;
-import org.jboss.security.authorization.AuthorizationContext;
-import org.jboss.security.authorization.PolicyRegistration;
-import org.jboss.security.authorization.Resource;
-import org.jboss.security.authorization.modules.AuthorizationModuleDelegate;
-
-//$Id$
-
-/**
- *  Authorization Module Delegate that deals with the default authorization
- *  behavior (Simply returns PERMIT, because the final decision will be
- *  made by the base class of Realm (RealmBase))
- *  @author <a href="mailto:Anil.Saldhana at jboss.org">Anil Saldhana</a>
- *  @since  Jul 21, 2006 
- *  @version $Revision$
- */
-public class WebPolicyModuleDelegate extends AuthorizationModuleDelegate
-{ 
-   public WebPolicyModuleDelegate()
-   { 
-      log = Logger.getLogger(getClass());
-      trace = log.isTraceEnabled();
-   }
-
-   public int authorize(Resource resource)
-   {
-      return AuthorizationContext.PERMIT;
-   } 
-}




More information about the jboss-cvs-commits mailing list