[jboss-cvs] JBossAS SVN: r68971 - in projects/security/security-spi/tags: 2.0.2.Beta4 and 12 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Jan 15 00:46:21 EST 2008
Author: anil.saldhana at jboss.com
Date: 2008-01-15 00:46:21 -0500 (Tue, 15 Jan 2008)
New Revision: 68971
Added:
projects/security/security-spi/tags/2.0.2.Beta4/
projects/security/security-spi/tags/2.0.2.Beta4/.classpath
projects/security/security-spi/tags/2.0.2.Beta4/acl/pom.xml
projects/security/security-spi/tags/2.0.2.Beta4/authorization/pom.xml
projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/AuthorizationManager.java
projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/authorization/AuthorizationContext.java
projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/authorization/AuthorizationModule.java
projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/authorization/ResourceKeys.java
projects/security/security-spi/tags/2.0.2.Beta4/identity/pom.xml
projects/security/security-spi/tags/2.0.2.Beta4/identity/src/main/org/jboss/security/identity/
projects/security/security-spi/tags/2.0.2.Beta4/identity/src/main/org/jboss/security/identity/RoleGroup.java
projects/security/security-spi/tags/2.0.2.Beta4/parent/pom.xml
projects/security/security-spi/tags/2.0.2.Beta4/pom.xml
projects/security/security-spi/tags/2.0.2.Beta4/spi/pom.xml
projects/security/security-spi/tags/2.0.2.Beta4/spi/src/main/org/jboss/security/ISecurityManagement.java
projects/security/security-spi/tags/2.0.2.Beta4/spi/src/main/org/jboss/security/callbacks/
projects/security/security-spi/tags/2.0.2.Beta4/spi/src/main/org/jboss/security/mapping/MappingContext.java
projects/security/security-spi/tags/2.0.2.Beta4/spi/src/main/org/jboss/security/mapping/MappingManager.java
projects/security/security-spi/tags/2.0.2.Beta4/spi/src/tests/org/jboss/test/security/factories/SomeAuthorizationManager.java
Removed:
projects/security/security-spi/tags/2.0.2.Beta4/.classpath
projects/security/security-spi/tags/2.0.2.Beta4/acl/pom.xml
projects/security/security-spi/tags/2.0.2.Beta4/authorization/pom.xml
projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/AuthorizationManager.java
projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/authorization/AuthorizationContext.java
projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/authorization/AuthorizationModule.java
projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/authorization/ResourceKeys.java
projects/security/security-spi/tags/2.0.2.Beta4/identity/pom.xml
projects/security/security-spi/tags/2.0.2.Beta4/identity/src/main/org/jboss/security/identity/
projects/security/security-spi/tags/2.0.2.Beta4/identity/src/main/org/jboss/security/identity/RoleGroup.java
projects/security/security-spi/tags/2.0.2.Beta4/parent/pom.xml
projects/security/security-spi/tags/2.0.2.Beta4/pom.xml
projects/security/security-spi/tags/2.0.2.Beta4/spi/pom.xml
projects/security/security-spi/tags/2.0.2.Beta4/spi/src/main/org/jboss/security/ISecurityManagement.java
projects/security/security-spi/tags/2.0.2.Beta4/spi/src/main/org/jboss/security/mapping/MappingContext.java
projects/security/security-spi/tags/2.0.2.Beta4/spi/src/main/org/jboss/security/mapping/MappingManager.java
projects/security/security-spi/tags/2.0.2.Beta4/spi/src/tests/org/jboss/test/security/factories/SomeAuthorizationManager.java
Log:
[maven-release-plugin] copy for tag 2.0.2.Beta4
Copied: projects/security/security-spi/tags/2.0.2.Beta4 (from rev 68601, projects/security/security-spi/trunk)
Deleted: projects/security/security-spi/tags/2.0.2.Beta4/.classpath
===================================================================
--- projects/security/security-spi/trunk/.classpath 2008-01-03 15:50:50 UTC (rev 68601)
+++ projects/security/security-spi/tags/2.0.2.Beta4/.classpath 2008-01-15 05:46:21 UTC (rev 68971)
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="spi/src/tests"/>
- <classpathentry kind="src" path="acl/src/main"/>
- <classpathentry kind="src" path="identity/src/tests"/>
- <classpathentry kind="src" path="identity/src/main"/>
- <classpathentry kind="src" path="authorization/src/main"/>
- <classpathentry kind="src" path="spi/src/main"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-jaspi-api/1.0-BETA1/jboss-jaspi-api-1.0-BETA1.jar"/>
- <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/jboss/security/authorization-spi/2.0.2-SNAPSHOT/authorization-spi-2.0.2-SNAPSHOT.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/jboss/security/identity-impl/2.0.2-SNAPSHOT/identity-impl-2.0.2-SNAPSHOT.jar"/>
- <classpathentry kind="output" path="target/eclipse-classes"/>
-</classpath>
Copied: projects/security/security-spi/tags/2.0.2.Beta4/.classpath (from rev 68746, projects/security/security-spi/trunk/.classpath)
===================================================================
--- projects/security/security-spi/tags/2.0.2.Beta4/.classpath (rev 0)
+++ projects/security/security-spi/tags/2.0.2.Beta4/.classpath 2008-01-15 05:46:21 UTC (rev 68971)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="spi/src/tests"/>
+ <classpathentry kind="src" path="acl/src/main"/>
+ <classpathentry kind="src" path="identity/src/tests"/>
+ <classpathentry kind="src" path="identity/src/main"/>
+ <classpathentry kind="src" path="authorization/src/main"/>
+ <classpathentry kind="src" path="spi/src/main"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-jaspi-api/1.0-BETA1/jboss-jaspi-api-1.0-BETA1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/security/authorization-spi/2.0.2-SNAPSHOT/authorization-spi-2.0.2-SNAPSHOT.jar"/>
+ <classpathentry kind="output" path="target/eclipse-classes"/>
+</classpath>
Deleted: projects/security/security-spi/tags/2.0.2.Beta4/acl/pom.xml
===================================================================
--- projects/security/security-spi/trunk/acl/pom.xml 2008-01-03 15:50:50 UTC (rev 68601)
+++ projects/security/security-spi/tags/2.0.2.Beta4/acl/pom.xml 2008-01-15 05:46:21 UTC (rev 68971)
@@ -1,70 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <groupId>org.jboss.security</groupId>
- <artifactId>jboss-security-spi-parent</artifactId>
- <version>2.0.2-SNAPSHOT</version>
- <relativePath>../parent</relativePath>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>acl-spi</artifactId>
- <version>2.0.2-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>JBoss Security Access Control List SPI</name>
- <url>http://labs.jboss.org/portal/jbosssecurity/</url>
- <description>JBoss Security is a cross cutting project that handles security for the JEMS projects</description>
- <licenses>
- <license>
- <name>lgpl</name>
- <url>http://repository.jboss.com/licenses/lgpl.txt</url>
- </license>
- </licenses>
- <organization>
- <name>JBoss Inc.</name>
- <url>http://www.jboss.org</url>
- </organization>
- <scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/security-spi/trunk/</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/security-spi/trunk/</developerConnection>
- <url>http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/security-spi/trunk/</url>
- </scm>
- <build>
- <sourceDirectory>${basedir}/src/main</sourceDirectory>
- <testSourceDirectory>${basedir}/src/tests</testSourceDirectory>
- <testOutputDirectory>${basedir}/target/test-classes</testOutputDirectory>
- <finalName>${artifactId}</finalName>
- <outputDirectory>${basedir}/target/classes</outputDirectory>
- <resources>
- <resource>
- <directory>${basedir}</directory>
- <includes>
- <include>JBossORG-EULA.txt</include>
- </includes>
- </resource>
- </resources>
- </build>
- <dependencies>
- <dependency>
- <groupId>org.jboss.security</groupId>
- <artifactId>identity-spi</artifactId>
- </dependency>
- <dependency>
- <groupId>org.jboss.security</groupId>
- <artifactId>authorization-spi</artifactId>
- </dependency>
- </dependencies>
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-report-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <configuration>
- <aggregate>true</aggregate>
- </configuration>
- </plugin>
- </plugins>
- </reporting>
-</project>
\ No newline at end of file
Copied: projects/security/security-spi/tags/2.0.2.Beta4/acl/pom.xml (from rev 68970, projects/security/security-spi/trunk/acl/pom.xml)
===================================================================
--- projects/security/security-spi/tags/2.0.2.Beta4/acl/pom.xml (rev 0)
+++ projects/security/security-spi/tags/2.0.2.Beta4/acl/pom.xml 2008-01-15 05:46:21 UTC (rev 68971)
@@ -0,0 +1,70 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.security</groupId>
+ <artifactId>jboss-security-spi-parent</artifactId>
+ <version>2.0.2.Beta4</version>
+ <relativePath>../parent</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>acl-spi</artifactId>
+ <version>2.0.2.Beta4</version>
+ <packaging>jar</packaging>
+ <name>JBoss Security Access Control List SPI</name>
+ <url>http://labs.jboss.org/portal/jbosssecurity/</url>
+ <description>JBoss Security is a cross cutting project that handles security for the JEMS projects</description>
+ <licenses>
+ <license>
+ <name>lgpl</name>
+ <url>http://repository.jboss.com/licenses/lgpl.txt</url>
+ </license>
+ </licenses>
+ <organization>
+ <name>JBoss Inc.</name>
+ <url>http://www.jboss.org</url>
+ </organization>
+ <scm>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/security/security-spi/tags/2.0.2.Beta4</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/security/security-spi/tags/2.0.2.Beta4</developerConnection>
+ <url>http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/security/security-spi/tags/2.0.2.Beta4</url>
+ </scm>
+ <build>
+ <sourceDirectory>${basedir}/src/main</sourceDirectory>
+ <testSourceDirectory>${basedir}/src/tests</testSourceDirectory>
+ <testOutputDirectory>${basedir}/target/test-classes</testOutputDirectory>
+ <finalName>${artifactId}</finalName>
+ <outputDirectory>${basedir}/target/classes</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${basedir}</directory>
+ <includes>
+ <include>JBossORG-EULA.txt</include>
+ </includes>
+ </resource>
+ </resources>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.security</groupId>
+ <artifactId>identity-spi</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.security</groupId>
+ <artifactId>authorization-spi</artifactId>
+ </dependency>
+ </dependencies>
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-report-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration>
+ <aggregate>true</aggregate>
+ </configuration>
+ </plugin>
+ </plugins>
+ </reporting>
+</project>
\ No newline at end of file
Deleted: projects/security/security-spi/tags/2.0.2.Beta4/authorization/pom.xml
===================================================================
--- projects/security/security-spi/trunk/authorization/pom.xml 2008-01-03 15:50:50 UTC (rev 68601)
+++ projects/security/security-spi/tags/2.0.2.Beta4/authorization/pom.xml 2008-01-15 05:46:21 UTC (rev 68971)
@@ -1,70 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <groupId>org.jboss.security</groupId>
- <artifactId>jboss-security-spi-parent</artifactId>
- <version>2.0.2-SNAPSHOT</version>
- <relativePath>../parent</relativePath>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>authorization-spi</artifactId>
- <packaging>jar</packaging>
- <name>JBoss Security Authorization SPI</name>
- <url>http://labs.jboss.org/portal/jbosssecurity/</url>
- <description>JBoss Security is a cross cutting project that handles security for the JEMS projects</description>
- <licenses>
- <license>
- <name>lgpl</name>
- <url>http://repository.jboss.com/licenses/lgpl.txt</url>
- </license>
- </licenses>
- <organization>
- <name>JBoss Inc.</name>
- <url>http://www.jboss.org</url>
- </organization>
- <scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/security-spi/trunk/</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/security-spi/trunk/</developerConnection>
- <url>http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/security-spi/trunk/</url>
- </scm>
- <build>
- <sourceDirectory>${basedir}/src/main</sourceDirectory>
- <testSourceDirectory>${basedir}/src/tests</testSourceDirectory>
- <testOutputDirectory>${basedir}/target/test-classes</testOutputDirectory>
- <finalName>${artifactId}</finalName>
- <outputDirectory>${basedir}/target/classes</outputDirectory>
- <resources>
- <resource>
- <directory>${basedir}</directory>
- <includes>
- <include>JBossORG-EULA.txt</include>
- </includes>
- </resource>
- </resources>
- </build>
- <dependencies>
- <dependency>
- <groupId>org.jboss.security</groupId>
- <artifactId>identity-spi</artifactId>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-report-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <configuration>
- <aggregate>true</aggregate>
- </configuration>
- </plugin>
- </plugins>
- </reporting>
-</project>
\ No newline at end of file
Copied: projects/security/security-spi/tags/2.0.2.Beta4/authorization/pom.xml (from rev 68970, projects/security/security-spi/trunk/authorization/pom.xml)
===================================================================
--- projects/security/security-spi/tags/2.0.2.Beta4/authorization/pom.xml (rev 0)
+++ projects/security/security-spi/tags/2.0.2.Beta4/authorization/pom.xml 2008-01-15 05:46:21 UTC (rev 68971)
@@ -0,0 +1,70 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.security</groupId>
+ <artifactId>jboss-security-spi-parent</artifactId>
+ <version>2.0.2.Beta4</version>
+ <relativePath>../parent</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>authorization-spi</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss Security Authorization SPI</name>
+ <url>http://labs.jboss.org/portal/jbosssecurity/</url>
+ <description>JBoss Security is a cross cutting project that handles security for the JEMS projects</description>
+ <licenses>
+ <license>
+ <name>lgpl</name>
+ <url>http://repository.jboss.com/licenses/lgpl.txt</url>
+ </license>
+ </licenses>
+ <organization>
+ <name>JBoss Inc.</name>
+ <url>http://www.jboss.org</url>
+ </organization>
+ <scm>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/security/security-spi/tags/2.0.2.Beta4</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/security/security-spi/tags/2.0.2.Beta4</developerConnection>
+ <url>http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/security/security-spi/tags/2.0.2.Beta4</url>
+ </scm>
+ <build>
+ <sourceDirectory>${basedir}/src/main</sourceDirectory>
+ <testSourceDirectory>${basedir}/src/tests</testSourceDirectory>
+ <testOutputDirectory>${basedir}/target/test-classes</testOutputDirectory>
+ <finalName>${artifactId}</finalName>
+ <outputDirectory>${basedir}/target/classes</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${basedir}</directory>
+ <includes>
+ <include>JBossORG-EULA.txt</include>
+ </includes>
+ </resource>
+ </resources>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.security</groupId>
+ <artifactId>identity-spi</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-report-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration>
+ <aggregate>true</aggregate>
+ </configuration>
+ </plugin>
+ </plugins>
+ </reporting>
+</project>
\ No newline at end of file
Deleted: projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/AuthorizationManager.java
===================================================================
--- projects/security/security-spi/trunk/authorization/src/main/org/jboss/security/AuthorizationManager.java 2008-01-03 15:50:50 UTC (rev 68601)
+++ projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/AuthorizationManager.java 2008-01-15 05:46:21 UTC (rev 68971)
@@ -1,96 +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.security;
-
-import java.security.Principal;
-import java.security.acl.Group;
-import java.util.Map;
-import java.util.Set;
-
-import org.jboss.security.authorization.AuthorizationException;
-import org.jboss.security.authorization.EntitlementHolder;
-import org.jboss.security.authorization.Resource;
-import org.jboss.security.identity.Identity;
-
-//$Id$
-
-/**
- * Generalized Authorization Manager Interface.
- * <br/><br/>
- * <b>Replaces the legacy RealmMapping interface</b>
- * @see org.jboss.security.RealmMapping
- * @author <a href="mailto:Anil.Saldhana at jboss.org">Anil Saldhana</a>
- * @since Jan 2, 2006
- * @version $Revision$
- */
-public interface AuthorizationManager extends BaseSecurityManager
-{
- /**
- * Authorize a resource
- * @param resource
- * @return
- * @throws AuthorizationException
- */
- public int authorize(final Resource resource) throws AuthorizationException;
-
- /**
- * Instance Based Security
- * Get all the entitlements assigned to the components of a Resource
- * @param resource A Resource (Can be a Portal Resource, a Rules Resource)
- * @param identity The Identity against whom the entitlements need to be generated
- * @return a Entitlements Wrapper
- * @throws AuthorizationException
- */
- public EntitlementHolder<?> entitlements(final Resource resource,
- final Identity identity) throws AuthorizationException;
-
-
- /** Validates the application domain roles to which the operational
- environment Principal belongs.
- @param principal the caller principal as known in the operation environment.
- @param roles The Set<Principal> for the application domain roles that the
- principal is to be validated against.
- @return true if the principal has at least one of the roles in the roles set,
- false otherwise.
- */
- public boolean doesUserHaveRole(Principal principal, Set<Principal> roles);
-
-
- /** Return the set of domain roles the principal has been assigned.
- @return The Set<Principal> for the application domain roles that the
- principal has been assigned.
- */
- public Set<Principal> getUserRoles(Principal principal);
-
- /**
- * Trust usecases may have a need to determine the roles of the target
- * principal which has been derived via a principal from another domain
- * by the Authentication Manager
- * An implementation of this interface may have to contact a trust provider
- * for additional information about the principal
- * @param targetPrincipal Principal applicable in current domain
- * @param contextMap Read-Only Contextual Information that may be useful for the
- * implementation in determining the roles.
- * @return roles from the target domain
- */
- public Group getTargetRoles(Principal targetPrincipal, Map<String,Object> contextMap);
- }
\ No newline at end of file
Copied: projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/AuthorizationManager.java (from rev 68742, projects/security/security-spi/trunk/authorization/src/main/org/jboss/security/AuthorizationManager.java)
===================================================================
--- projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/AuthorizationManager.java (rev 0)
+++ projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/AuthorizationManager.java 2008-01-15 05:46:21 UTC (rev 68971)
@@ -0,0 +1,134 @@
+/*
+ * 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;
+
+import java.security.Principal;
+import java.security.acl.Group;
+import java.util.Map;
+import java.util.Set;
+
+import javax.security.auth.Subject;
+import javax.security.auth.callback.CallbackHandler;
+
+import org.jboss.security.authorization.AuthorizationException;
+import org.jboss.security.authorization.EntitlementHolder;
+import org.jboss.security.authorization.Resource;
+import org.jboss.security.identity.Identity;
+import org.jboss.security.identity.RoleGroup;
+
+//$Id$
+
+/**
+ * Generalized Authorization Manager Interface.
+ * <br/><br/>
+ * <b>Replaces the legacy RealmMapping interface</b>
+ * @see org.jboss.security.RealmMapping
+ * @author <a href="mailto:Anil.Saldhana at jboss.org">Anil Saldhana</a>
+ * @since Jan 2, 2006
+ * @version $Revision$
+ */
+public interface AuthorizationManager extends BaseSecurityManager
+{
+ /**
+ * Authorize a resource
+ * @param resource
+ * @return AuthorizationContext.PERMIT or AuthorizationContext.DENY
+ * @throws AuthorizationException
+ */
+ public int authorize(final Resource resource) throws AuthorizationException;
+
+ /**
+ * Authorize a resource given a role
+ * @param resource
+ * @param subject the authenticated subject
+ * @param role a role (which can be a nested role)
+ * @return AuthorizationContext.PERMIT or AuthorizationContext.DENY
+ * @throws AuthorizationException
+ */
+ public int authorize(final Resource resource, Subject subject,
+ RoleGroup role) throws AuthorizationException;
+
+ /**
+ * Authorize a resource given a Group of Principals representing roles
+ * @param resource
+ * @param subject the authenticated subject
+ * @param roleGroup
+ * @return
+ * @throws AuthorizationException
+ */
+ public int authorize(final Resource resource,
+ Subject subject, Group roleGroup) throws AuthorizationException;
+
+ /**
+ * Instance Based Security
+ * Get all the entitlements assigned to the components of a Resource
+ * @param resource A Resource (Can be a Portal Resource, a Rules Resource)
+ * @param identity The Identity against whom the entitlements need to be generated
+ * @return a Entitlements Wrapper
+ * @throws AuthorizationException
+ */
+ public EntitlementHolder<?> entitlements(final Resource resource,
+ final Identity identity) throws AuthorizationException;
+
+
+ /** Validates the application domain roles to which the operational
+ environment Principal belongs.
+ @param principal the caller principal as known in the operation environment.
+ @param roles The Set<Principal> for the application domain roles that the
+ principal is to be validated against.
+ @return true if the principal has at least one of the roles in the roles set,
+ false otherwise.
+ */
+ public boolean doesUserHaveRole(Principal principal, Set<Principal> roles);
+
+
+ /**
+ * Get the Current Roles for the authenticated Subject
+ * The AuthorizationManager will apply role generation and role mapping
+ * logic configured for the security domain
+ * @param authenticatedSubject
+ * @param cbh a CallbackHandler that can be used by the AuthorizationManager
+ * to obtain essentials such as SecurityContext etc
+ * @return
+ */
+ public RoleGroup getSubjectRoles(Subject authenticatedSubject, CallbackHandler cbh);
+
+ /** Return the set of domain roles the principal has been assigned.
+ @return The Set<Principal> for the application domain roles that the
+ principal has been assigned.
+ @deprecated
+ */
+ public Set<Principal> getUserRoles(Principal principal);
+
+ /**
+ * Trust usecases may have a need to determine the roles of the target
+ * principal which has been derived via a principal from another domain
+ * by the Authentication Manager
+ * An implementation of this interface may have to contact a trust provider
+ * for additional information about the principal
+ * @param targetPrincipal Principal applicable in current domain
+ * @param contextMap Read-Only Contextual Information that may be useful for the
+ * implementation in determining the roles.
+ * @return roles from the target domain
+ */
+ public Group getTargetRoles(Principal targetPrincipal, Map<String,Object> contextMap);
+ }
\ No newline at end of file
Deleted: projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/authorization/AuthorizationContext.java
===================================================================
--- projects/security/security-spi/trunk/authorization/src/main/org/jboss/security/authorization/AuthorizationContext.java 2008-01-03 15:50:50 UTC (rev 68601)
+++ projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/authorization/AuthorizationContext.java 2008-01-15 05:46:21 UTC (rev 68971)
@@ -1,76 +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.security.authorization;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import javax.security.auth.Subject;
-import javax.security.auth.callback.CallbackHandler;
-
-import org.jboss.security.config.ControlFlag;
-
-
-//$Id: AuthorizationContext.java 62954 2007-05-10 04:12:18Z anil.saldhana at jboss.com $
-
-/**
- * JBAS-3374: Authorization Framework for Policy Decision Modules
- * For information on the behavior of the Authorization Modules,
- * For Authorization Modules behavior(Required, Requisite, Sufficient and Optional)
- * please refer to the javadoc for @see javax.security.auth.login.Configuration
- *
- * The AuthorizationContext derives the AuthorizationInfo(configuration for the modules)
- * in the following way:
- * a) If there has been an injection of ApplicationPolicy, then it will be used.
- * b) Util.getApplicationPolicy will be used(which relies on SecurityConfiguration static class).
- * c) Flag an error that there is no available Application Policy
- *
- * @author <a href="mailto:Anil.Saldhana at jboss.org">Anil Saldhana</a>
- * @since Jun 11, 2006
- * @version $Revision: 62954 $
- */
-public abstract class AuthorizationContext
-{
- protected String securityDomainName = null;
- protected CallbackHandler callbackHandler = null;
- protected Subject authenticatedSubject = null;
- protected Map<String,Object> sharedState = new HashMap<String,Object>();
-
- protected List<AuthorizationModule> modules = new ArrayList<AuthorizationModule>();
-
- /**
- * Control Flags for the individual modules
- */
- protected List<ControlFlag> controlFlags = new ArrayList<ControlFlag>();
-
- public static final int PERMIT = 1;
- public static final int DENY = -1;
-
- /**
- * Authorize the Resource
- * @param resource
- * @return AuthorizationContext.PERMIT or AuthorizationContext.DENY
- * @throws AuthorizationException
- */
- public abstract int authorize(final Resource resource) throws AuthorizationException;
-}
\ No newline at end of file
Copied: projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/authorization/AuthorizationContext.java (from rev 68741, projects/security/security-spi/trunk/authorization/src/main/org/jboss/security/authorization/AuthorizationContext.java)
===================================================================
--- projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/authorization/AuthorizationContext.java (rev 0)
+++ projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/authorization/AuthorizationContext.java 2008-01-15 05:46:21 UTC (rev 68971)
@@ -0,0 +1,104 @@
+/*
+ * 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.authorization;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.security.auth.Subject;
+import javax.security.auth.callback.CallbackHandler;
+
+import org.jboss.security.config.ControlFlag;
+import org.jboss.security.identity.RoleGroup;
+
+
+//$Id: AuthorizationContext.java 62954 2007-05-10 04:12:18Z anil.saldhana at jboss.com $
+
+/**
+ * JBAS-3374: Authorization Framework for Policy Decision Modules
+ * For information on the behavior of the Authorization Modules,
+ * For Authorization Modules behavior(Required, Requisite, Sufficient and Optional)
+ * please refer to the javadoc for @see javax.security.auth.login.Configuration
+ *
+ * The AuthorizationContext derives the AuthorizationInfo(configuration for the modules)
+ * in the following way:
+ * a) If there has been an injection of ApplicationPolicy, then it will be used.
+ * b) Util.getApplicationPolicy will be used(which relies on SecurityConfiguration static class).
+ * c) Flag an error that there is no available Application Policy
+ *
+ * @author <a href="mailto:Anil.Saldhana at jboss.org">Anil Saldhana</a>
+ * @since Jun 11, 2006
+ * @version $Revision: 62954 $
+ */
+public abstract class AuthorizationContext
+{
+ protected String securityDomainName = null;
+ protected CallbackHandler callbackHandler = null;
+ //protected Subject authenticatedSubject = null;
+ protected Map<String,Object> sharedState = new HashMap<String,Object>();
+
+ /**
+ * Roles of the Subject
+ */
+ // protected Role subjectRoles = null;
+
+ protected List<AuthorizationModule> modules = new ArrayList<AuthorizationModule>();
+
+ /**
+ * Control Flags for the individual modules
+ */
+ protected List<ControlFlag> controlFlags = new ArrayList<ControlFlag>();
+
+ public static final int PERMIT = 1;
+ public static final int DENY = -1;
+
+ /**
+ * Authorize the Resource
+ * @param resource
+ * @return AuthorizationContext.PERMIT or AuthorizationContext.DENY
+ * @throws AuthorizationException
+ */
+ public abstract int authorize(final Resource resource) throws AuthorizationException;
+
+ /**
+ * Authorize the resource
+ * @param resource
+ * @param subject Subject of the caller
+ * @param roles Roles of the caller
+ * @return
+ * @throws AuthorizationException
+ */
+ public abstract int authorize(final Resource resource, final Subject subject,
+ final RoleGroup roles)
+ throws AuthorizationException;
+
+ /**
+ * Return the Security Domain Name
+ * @return security domain
+ */
+ public String getSecurityDomain()
+ {
+ return this.securityDomainName;
+ }
+}
\ No newline at end of file
Deleted: projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/authorization/AuthorizationModule.java
===================================================================
--- projects/security/security-spi/trunk/authorization/src/main/org/jboss/security/authorization/AuthorizationModule.java 2008-01-03 15:50:50 UTC (rev 68601)
+++ projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/authorization/AuthorizationModule.java 2008-01-15 05:46:21 UTC (rev 68971)
@@ -1,78 +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.security.authorization;
-
-import java.util.Map;
-
-import javax.security.auth.Subject;
-import javax.security.auth.callback.CallbackHandler;
-
-//$Id: AuthorizationModule.java 45685 2006-06-20 04:46:23Z asaldhana $
-
-/**
- * Represents a Policy Decision Module that is used by the
- * Authorization Context
- * @author <a href="mailto:Anil.Saldhana at jboss.org">Anil Saldhana</a>
- * @since Jun 11, 2006
- * @version $Revision: 45685 $
- */
-public interface AuthorizationModule
-{
- /**
- * Abort the Authorization Process
- * @return true - abort passed, false-otherwise
- */
- boolean abort() throws AuthorizationException;
-
- /**
- * Overall authorization process has succeeded.
- * The module can commit any decisions it has made, with
- * third party systems like a database.
- * @return
- */
- boolean commit() throws AuthorizationException;
-
- /**
- * Initialize the module
- *
- * @param subject the authenticated subject
- * @param handler CallbackHandler
- * @param sharedState state shared with other configured modules
- * @param options options specified in the Configuration
- * for this particular module
- */
- void initialize(Subject subject, CallbackHandler handler,
- Map<String,Object> sharedState, Map<String,Object> options);
-
- /**
- * Authorize the resource
- * @param resource
- * @return AuthorizationContext.PERMIT or AuthorizationContext.DENY
- */
- int authorize(Resource resource);
-
- /**
- * A final cleanup opportunity offered
- * @return cleanup by the module passed or not
- */
- boolean destroy();
-}
Copied: projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/authorization/AuthorizationModule.java (from rev 68741, projects/security/security-spi/trunk/authorization/src/main/org/jboss/security/authorization/AuthorizationModule.java)
===================================================================
--- projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/authorization/AuthorizationModule.java (rev 0)
+++ projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/authorization/AuthorizationModule.java 2008-01-15 05:46:21 UTC (rev 68971)
@@ -0,0 +1,81 @@
+/*
+ * 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.authorization;
+
+import java.util.Map;
+
+import javax.security.auth.Subject;
+import javax.security.auth.callback.CallbackHandler;
+
+import org.jboss.security.identity.RoleGroup;
+
+//$Id: AuthorizationModule.java 45685 2006-06-20 04:46:23Z asaldhana $
+
+/**
+ * Represents a Policy Decision Module that is used by the
+ * Authorization Context
+ * @author <a href="mailto:Anil.Saldhana at jboss.org">Anil Saldhana</a>
+ * @since Jun 11, 2006
+ * @version $Revision: 45685 $
+ */
+public interface AuthorizationModule
+{
+ /**
+ * Abort the Authorization Process
+ * @return true - abort passed, false-otherwise
+ */
+ boolean abort() throws AuthorizationException;
+
+ /**
+ * Overall authorization process has succeeded.
+ * The module can commit any decisions it has made, with
+ * third party systems like a database.
+ * @return
+ */
+ boolean commit() throws AuthorizationException;
+
+ /**
+ * Initialize the module
+ *
+ * @param subject the authenticated subject
+ * @param handler CallbackHandler
+ * @param sharedState state shared with other configured modules
+ * @param options options specified in the Configuration
+ * for this particular module
+ * @param roles Roles of the subject
+ */
+ void initialize(Subject subject, CallbackHandler handler,
+ Map<String,Object> sharedState, Map<String,Object> options, RoleGroup roles);
+
+ /**
+ * Authorize the resource
+ * @param resource
+ * @return AuthorizationContext.PERMIT or AuthorizationContext.DENY
+ */
+ int authorize(Resource resource);
+
+ /**
+ * A final cleanup opportunity offered
+ * @return cleanup by the module passed or not
+ */
+ boolean destroy();
+}
Deleted: projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/authorization/ResourceKeys.java
===================================================================
--- projects/security/security-spi/trunk/authorization/src/main/org/jboss/security/authorization/ResourceKeys.java 2008-01-03 15:50:50 UTC (rev 68601)
+++ projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/authorization/ResourceKeys.java 2008-01-15 05:46:21 UTC (rev 68971)
@@ -1,62 +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.security.authorization;
-
-//$Id$
-
-/**
- * Defines the keys for the Context Map in the Resource
- * @author <a href="mailto:Anil.Saldhana at jboss.org">Anil Saldhana</a>
- * @since Jul 17, 2006
- * @version $Revision$
- */
-public interface ResourceKeys
-{
- //Constants for the WEB Layer
- String WEB_CONTEXT = "web.context";
- String WEB_REQUEST = "web.request";
- String WEB_RESPONSE = "web.response";
- String WEB_SECURITY_CONSTRAINTS = "web.constraints";
-
- String HASROLE_PRINCIPAL = "hasRole.Principal";
- String PRINCIPAL_ROLES = "principal.roles";
- String SERVLET_NAME = "servletName";
- String RESOURCE_PERM_CHECK = "resourcePermissionCheck";
- String USERDATA_PERM_CHECK = "userDataPermissionCheck";
-
- //Constants for the EJB Layer
- String EJB_NAME = "ejb.name";
- String EJB_METHOD = "ejb.method";
- String EJB_PRINCIPAL = "ejb.principal";
- String EJB_METHODINTERFACE = "ejb.methodInterface";
- String EJB_CODESOURCE = "ejb.codeSource";
- String EJB_METHODROLES = "ejb.methodRoles";
-
- //General Constants
- String CALLER_SUBJECT = "caller.subject";
- String AUTHORIZATION_MANAGER = "authorizationManager";
- String ROLENAME = "roleName";
- String ROLEREF_PERM_CHECK = "roleRefPermissionCheck";
- String RUNASIDENTITY = "runAsIdentity";
- String SECURITY_ROLE_REFERENCES = "securityRoleReferences";
- String SECURITY_CONTEXT_ROLES = "securityContextRoles";
-}
Copied: projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/authorization/ResourceKeys.java (from rev 68740, projects/security/security-spi/trunk/authorization/src/main/org/jboss/security/authorization/ResourceKeys.java)
===================================================================
--- projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/authorization/ResourceKeys.java (rev 0)
+++ projects/security/security-spi/tags/2.0.2.Beta4/authorization/src/main/org/jboss/security/authorization/ResourceKeys.java 2008-01-15 05:46:21 UTC (rev 68971)
@@ -0,0 +1,44 @@
+/*
+ * 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.authorization;
+
+//$Id$
+
+/**
+ * Defines the keys for the Context Map in the Resource
+ * @author <a href="mailto:Anil.Saldhana at jboss.org">Anil Saldhana</a>
+ * @since Jul 17, 2006
+ * @version $Revision$
+ */
+public interface ResourceKeys
+{
+ String HASROLE_PRINCIPAL = "hasRole.Principal";
+ String PRINCIPAL_ROLES = "principal.roles";
+ String RESOURCE_PERM_CHECK = "resourcePermissionCheck";
+ String USERDATA_PERM_CHECK = "userDataPermissionCheck";
+
+ //General Constants
+ String POLICY_REGISTRATION = "policyRegistration";
+ String ROLENAME = "roleName";
+ String ROLEREF_PERM_CHECK = "roleRefPermissionCheck";
+ String SECURITY_CONTEXT_ROLES = "securityContextRoles";
+}
Deleted: projects/security/security-spi/tags/2.0.2.Beta4/identity/pom.xml
===================================================================
--- projects/security/security-spi/trunk/identity/pom.xml 2008-01-03 15:50:50 UTC (rev 68601)
+++ projects/security/security-spi/tags/2.0.2.Beta4/identity/pom.xml 2008-01-15 05:46:21 UTC (rev 68971)
@@ -1,59 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <groupId>org.jboss.security</groupId>
- <artifactId>jboss-security-spi-parent</artifactId>
- <version>2.0.2-SNAPSHOT</version>
- <relativePath>../parent</relativePath>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>identity-spi</artifactId>
- <packaging>jar</packaging>
- <name>JBoss Security Identity SPI</name>
- <url>http://labs.jboss.org/portal/jbosssecurity/</url>
- <description>JBoss Security is a cross cutting project that handles security for the JEMS projects</description>
- <licenses>
- <license>
- <name>lgpl</name>
- <url>http://repository.jboss.com/licenses/lgpl.txt</url>
- </license>
- </licenses>
- <organization>
- <name>JBoss Inc.</name>
- <url>http://www.jboss.org</url>
- </organization>
- <scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/security-spi/trunk/</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/security-spi/trunk/</developerConnection>
- <url>http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/security-spi/trunk/</url>
- </scm>
- <build>
- <sourceDirectory>${basedir}/src/main</sourceDirectory>
- <testSourceDirectory>${basedir}/src/tests</testSourceDirectory>
- <testOutputDirectory>${basedir}/target/test-classes</testOutputDirectory>
- <finalName>${artifactId}</finalName>
- <outputDirectory>${basedir}/target/classes</outputDirectory>
- <resources>
- <resource>
- <directory>${basedir}</directory>
- <includes>
- <include>JBossORG-EULA.txt</include>
- </includes>
- </resource>
- </resources>
- </build>
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-report-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <configuration>
- <aggregate>true</aggregate>
- </configuration>
- </plugin>
- </plugins>
- </reporting>
-</project>
\ No newline at end of file
Copied: projects/security/security-spi/tags/2.0.2.Beta4/identity/pom.xml (from rev 68970, projects/security/security-spi/trunk/identity/pom.xml)
===================================================================
--- projects/security/security-spi/tags/2.0.2.Beta4/identity/pom.xml (rev 0)
+++ projects/security/security-spi/tags/2.0.2.Beta4/identity/pom.xml 2008-01-15 05:46:21 UTC (rev 68971)
@@ -0,0 +1,59 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.security</groupId>
+ <artifactId>jboss-security-spi-parent</artifactId>
+ <version>2.0.2.Beta4</version>
+ <relativePath>../parent</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>identity-spi</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss Security Identity SPI</name>
+ <url>http://labs.jboss.org/portal/jbosssecurity/</url>
+ <description>JBoss Security is a cross cutting project that handles security for the JEMS projects</description>
+ <licenses>
+ <license>
+ <name>lgpl</name>
+ <url>http://repository.jboss.com/licenses/lgpl.txt</url>
+ </license>
+ </licenses>
+ <organization>
+ <name>JBoss Inc.</name>
+ <url>http://www.jboss.org</url>
+ </organization>
+ <scm>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/security/security-spi/tags/2.0.2.Beta4</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/security/security-spi/tags/2.0.2.Beta4</developerConnection>
+ <url>http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/security/security-spi/tags/2.0.2.Beta4</url>
+ </scm>
+ <build>
+ <sourceDirectory>${basedir}/src/main</sourceDirectory>
+ <testSourceDirectory>${basedir}/src/tests</testSourceDirectory>
+ <testOutputDirectory>${basedir}/target/test-classes</testOutputDirectory>
+ <finalName>${artifactId}</finalName>
+ <outputDirectory>${basedir}/target/classes</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${basedir}</directory>
+ <includes>
+ <include>JBossORG-EULA.txt</include>
+ </includes>
+ </resource>
+ </resources>
+ </build>
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-report-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration>
+ <aggregate>true</aggregate>
+ </configuration>
+ </plugin>
+ </plugins>
+ </reporting>
+</project>
\ No newline at end of file
Copied: projects/security/security-spi/tags/2.0.2.Beta4/identity/src/main/org/jboss/security/identity (from rev 68739, projects/security/security-spi/trunk/identity/src/main/org/jboss/security/identity)
Deleted: projects/security/security-spi/tags/2.0.2.Beta4/identity/src/main/org/jboss/security/identity/RoleGroup.java
===================================================================
--- projects/security/security-spi/trunk/identity/src/main/org/jboss/security/identity/RoleGroup.java 2008-01-09 19:50:07 UTC (rev 68739)
+++ projects/security/security-spi/tags/2.0.2.Beta4/identity/src/main/org/jboss/security/identity/RoleGroup.java 2008-01-15 05:46:21 UTC (rev 68971)
@@ -1,53 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, 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.identity;
-
-import java.util.List;
-
-//$Id$
-
-/**
- * Represents a group of roles
- * @author Anil.Saldhana at redhat.com
- * @since Nov 16, 2007
- * @version $Revision$
- */
-public interface RoleGroup extends Role
-{
- public List<Role> getRoles();
-
- /**
- * Validates whether a simple role is available
- * @param aRole simple role
- * @return
- * @throws IllegalArgumentException role is not simple
- */
- public boolean containsRole(Role aRole);
-
- /**
- * Validates whether there is at least one matching
- * role in "anotherRoleGroup"
- * @param anotherRoleGroup another role group
- * @return
- */
- public boolean containsAtleastOneRole(RoleGroup anotherRoleGroup);
-}
\ No newline at end of file
Copied: projects/security/security-spi/tags/2.0.2.Beta4/identity/src/main/org/jboss/security/identity/RoleGroup.java (from rev 68962, projects/security/security-spi/trunk/identity/src/main/org/jboss/security/identity/RoleGroup.java)
===================================================================
--- projects/security/security-spi/tags/2.0.2.Beta4/identity/src/main/org/jboss/security/identity/RoleGroup.java (rev 0)
+++ projects/security/security-spi/tags/2.0.2.Beta4/identity/src/main/org/jboss/security/identity/RoleGroup.java 2008-01-15 05:46:21 UTC (rev 68971)
@@ -0,0 +1,63 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, 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.identity;
+
+import java.util.List;
+
+//$Id$
+
+/**
+ * Represents a group of roles
+ * @author Anil.Saldhana at redhat.com
+ * @since Nov 16, 2007
+ * @version $Revision$
+ */
+public interface RoleGroup extends Role
+{
+ /**
+ * Get the roles contained
+ * @return
+ */
+ public List<Role> getRoles();
+
+ /**
+ * Add a role
+ * @param aRole
+ */
+ public void addRole(Role aRole);
+
+ /**
+ * Validates whether a simple role is available
+ * @param aRole simple role
+ * @return
+ * @throws IllegalArgumentException role is not simple
+ */
+ public boolean containsRole(Role aRole);
+
+ /**
+ * Validates whether there is at least one matching
+ * role in "anotherRoleGroup"
+ * @param anotherRoleGroup another role group
+ * @return
+ */
+ public boolean containsAtleastOneRole(RoleGroup anotherRoleGroup);
+}
\ No newline at end of file
Deleted: projects/security/security-spi/tags/2.0.2.Beta4/parent/pom.xml
===================================================================
--- projects/security/security-spi/trunk/parent/pom.xml 2008-01-03 15:50:50 UTC (rev 68601)
+++ projects/security/security-spi/tags/2.0.2.Beta4/parent/pom.xml 2008-01-15 05:46:21 UTC (rev 68971)
@@ -1,132 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <groupId>org.jboss</groupId>
- <artifactId>jboss-parent</artifactId>
- <version>3</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.jboss.security</groupId>
- <artifactId>jboss-security-spi-parent</artifactId>
- <packaging>pom</packaging>
- <version>2.0.2-SNAPSHOT</version>
- <name>JBoss Security SPI - Parent</name>
- <url>http://labs.jboss.org/portal/jbosssecurity/</url>
- <description>JBoss Security is a cross cutting project that handles security for the JEMS projects</description>
- <licenses>
- <license>
- <name>lgpl</name>
- <url>http://repository.jboss.com/licenses/lgpl.txt</url>
- </license>
- </licenses>
- <organization>
- <name>JBoss Inc.</name>
- <url>http://www.jboss.org</url>
- </organization>
- <scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/security/security-spi/trunk</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/security/security-spi/trunk</developerConnection>
- </scm>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.jboss.maven.plugins</groupId>
- <artifactId>maven-jboss-deploy-plugin</artifactId>
- <version>1.6</version>
- <executions>
- <execution>
- <id>jboss-deploy</id>
- <goals>
- <goal>jboss-deploy</goal>
- </goals>
- <phase>deploy</phase>
- </execution>
- </executions>
- <configuration>
- <groupId>jboss</groupId>
- <jbossDeployRoot>${jboss.repository.root}</jbossDeployRoot>
- <removeArtifactVersion>true</removeArtifactVersion>
- </configuration>
- <inherited>true</inherited>
- </plugin>
- <plugin>
- <artifactId>maven-release-plugin</artifactId>
- <configuration>
- <tagBase>https://svn.jboss.org/repos/jbossas/projects/security/security-spi/tags</tagBase>
- </configuration>
- </plugin>
- </plugins>
- <pluginManagement>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <printSummary>true</printSummary>
- <disableXmlReport>false</disableXmlReport>
- <testFailureIgnore>true</testFailureIgnore>
- <includes>
- <include>**/**TestCase.java</include>
- </includes>
- <forkMode>pertest</forkMode>
- <argLine>${surefire.jvm.args}</argLine>
- <useFile>false</useFile>
- <trimStackTrace>false</trimStackTrace>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
-
- <repositories>
- <repository>
- <id>repository.jboss.org</id>
- <name>JBoss Repository</name>
- <layout>default</layout>
- <url>http://repository.jboss.org/maven2/</url>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </repository>
-
- <repository>
- <id>snapshots.jboss.org</id>
- <name>JBoss Snapshots Repository</name>
- <layout>default</layout>
- <url>http://snapshots.jboss.org/maven2/</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>false</enabled>
- </releases>
- </repository>
- </repositories>
-
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>org.jboss.javaee</groupId>
- <artifactId>jboss-jaspi-api</artifactId>
- <version>1.0-BETA1</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.security</groupId>
- <artifactId>identity-spi</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.security</groupId>
- <artifactId>authorization-spi</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
-</project>
Copied: projects/security/security-spi/tags/2.0.2.Beta4/parent/pom.xml (from rev 68970, projects/security/security-spi/trunk/parent/pom.xml)
===================================================================
--- projects/security/security-spi/tags/2.0.2.Beta4/parent/pom.xml (rev 0)
+++ projects/security/security-spi/tags/2.0.2.Beta4/parent/pom.xml 2008-01-15 05:46:21 UTC (rev 68971)
@@ -0,0 +1,132 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-parent</artifactId>
+ <version>3</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.security</groupId>
+ <artifactId>jboss-security-spi-parent</artifactId>
+ <packaging>pom</packaging>
+ <version>2.0.2.Beta4</version>
+ <name>JBoss Security SPI - Parent</name>
+ <url>http://labs.jboss.org/portal/jbosssecurity/</url>
+ <description>JBoss Security is a cross cutting project that handles security for the JEMS projects</description>
+ <licenses>
+ <license>
+ <name>lgpl</name>
+ <url>http://repository.jboss.com/licenses/lgpl.txt</url>
+ </license>
+ </licenses>
+ <organization>
+ <name>JBoss Inc.</name>
+ <url>http://www.jboss.org</url>
+ </organization>
+ <scm>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/security/security-spi/tags/2.0.2.Beta4</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/security/security-spi/tags/2.0.2.Beta4</developerConnection>
+ </scm>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jboss-deploy-plugin</artifactId>
+ <version>1.6</version>
+ <executions>
+ <execution>
+ <id>jboss-deploy</id>
+ <goals>
+ <goal>jboss-deploy</goal>
+ </goals>
+ <phase>deploy</phase>
+ </execution>
+ </executions>
+ <configuration>
+ <groupId>jboss</groupId>
+ <jbossDeployRoot>${jboss.repository.root}</jbossDeployRoot>
+ <removeArtifactVersion>true</removeArtifactVersion>
+ </configuration>
+ <inherited>true</inherited>
+ </plugin>
+ <plugin>
+ <artifactId>maven-release-plugin</artifactId>
+ <configuration>
+ <tagBase>https://svn.jboss.org/repos/jbossas/projects/security/security-spi/tags</tagBase>
+ </configuration>
+ </plugin>
+ </plugins>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <printSummary>true</printSummary>
+ <disableXmlReport>false</disableXmlReport>
+ <testFailureIgnore>true</testFailureIgnore>
+ <includes>
+ <include>**/**TestCase.java</include>
+ </includes>
+ <forkMode>pertest</forkMode>
+ <argLine>${surefire.jvm.args}</argLine>
+ <useFile>false</useFile>
+ <trimStackTrace>false</trimStackTrace>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <repositories>
+ <repository>
+ <id>repository.jboss.org</id>
+ <name>JBoss Repository</name>
+ <layout>default</layout>
+ <url>http://repository.jboss.org/maven2/</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+
+ <repository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshots Repository</name>
+ <layout>default</layout>
+ <url>http://snapshots.jboss.org/maven2/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </repository>
+ </repositories>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.javaee</groupId>
+ <artifactId>jboss-jaspi-api</artifactId>
+ <version>1.0-BETA1</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.security</groupId>
+ <artifactId>identity-spi</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.security</groupId>
+ <artifactId>authorization-spi</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+</project>
Deleted: projects/security/security-spi/tags/2.0.2.Beta4/pom.xml
===================================================================
--- projects/security/security-spi/trunk/pom.xml 2008-01-03 15:50:50 UTC (rev 68601)
+++ projects/security/security-spi/tags/2.0.2.Beta4/pom.xml 2008-01-15 05:46:21 UTC (rev 68971)
@@ -1,50 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <groupId>org.jboss.security</groupId>
- <artifactId>jboss-security-spi-parent</artifactId>
- <version>2.0.2-SNAPSHOT</version>
- <relativePath>parent</relativePath>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.jboss.security</groupId>
- <artifactId>jboss-security-spi</artifactId>
- <packaging>pom</packaging>
- <version>2.0.2-SNAPSHOT</version>
- <name>JBoss Security SPI - Aggregator</name>
- <url>http://labs.jboss.org/portal/jbosssecurity/</url>
- <description>JBoss Security is a cross cutting project that handles security for the JEMS projects</description>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>2.2-beta-1</version>
- <executions>
- <execution>
- <phase>install</phase>
- <goals>
- <goal>attached</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <descriptors>
- <descriptor>assembly/bin.xml</descriptor>
- <descriptor>assembly/sources.xml</descriptor>
- </descriptors>
- </configuration>
- <inherited>false</inherited>
- </plugin>
- </plugins>
- </build>
-
- <modules>
- <module>parent</module>
- <module>identity</module>
- <module>authorization</module>
- <module>acl</module>
- <module>spi</module>
- </modules>
-
-</project>
Copied: projects/security/security-spi/tags/2.0.2.Beta4/pom.xml (from rev 68970, projects/security/security-spi/trunk/pom.xml)
===================================================================
--- projects/security/security-spi/tags/2.0.2.Beta4/pom.xml (rev 0)
+++ projects/security/security-spi/tags/2.0.2.Beta4/pom.xml 2008-01-15 05:46:21 UTC (rev 68971)
@@ -0,0 +1,50 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.security</groupId>
+ <artifactId>jboss-security-spi-parent</artifactId>
+ <version>2.0.2.Beta4</version>
+ <relativePath>parent</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.security</groupId>
+ <artifactId>jboss-security-spi</artifactId>
+ <packaging>pom</packaging>
+ <version>2.0.2.Beta4</version>
+ <name>JBoss Security SPI - Aggregator</name>
+ <url>http://labs.jboss.org/portal/jbosssecurity/</url>
+ <description>JBoss Security is a cross cutting project that handles security for the JEMS projects</description>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2-beta-1</version>
+ <executions>
+ <execution>
+ <phase>install</phase>
+ <goals>
+ <goal>attached</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <descriptors>
+ <descriptor>assembly/bin.xml</descriptor>
+ <descriptor>assembly/sources.xml</descriptor>
+ </descriptors>
+ </configuration>
+ <inherited>false</inherited>
+ </plugin>
+ </plugins>
+ </build>
+
+ <modules>
+ <module>parent</module>
+ <module>identity</module>
+ <module>authorization</module>
+ <module>acl</module>
+ <module>spi</module>
+ </modules>
+
+</project>
Deleted: projects/security/security-spi/tags/2.0.2.Beta4/spi/pom.xml
===================================================================
--- projects/security/security-spi/trunk/spi/pom.xml 2008-01-03 15:50:50 UTC (rev 68601)
+++ projects/security/security-spi/tags/2.0.2.Beta4/spi/pom.xml 2008-01-15 05:46:21 UTC (rev 68971)
@@ -1,63 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <groupId>org.jboss.security</groupId>
- <artifactId>jboss-security-spi-parent</artifactId>
- <version>2.0.2-SNAPSHOT</version>
- <relativePath>../parent</relativePath>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>jboss-security-spi-bare</artifactId>
- <packaging>jar</packaging>
- <name>JBoss Security SPI</name>
- <url>http://labs.jboss.org/portal/jbosssecurity/</url>
- <description>JBoss Security is a cross cutting project that handles security for the JEMS projects. The SPI Bare contains the SPI excluding the Authorization SPI.</description>
- <licenses>
- <license>
- <name>lgpl</name>
- <url>http://repository.jboss.com/licenses/lgpl.txt</url>
- </license>
- </licenses>
- <organization>
- <name>JBoss Inc.</name>
- <url>http://www.jboss.org</url>
- </organization>
- <scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/security-spi/trunk/</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/security-spi/trunk/</developerConnection>
- <url>http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/security-spi/trunk/</url>
- </scm>
- <build>
- <sourceDirectory>${basedir}/src/main</sourceDirectory>
- <testSourceDirectory>${basedir}/src/tests</testSourceDirectory>
- <testOutputDirectory>${basedir}/target/test-classes</testOutputDirectory>
- <finalName>${artifactId}</finalName>
- <outputDirectory>${basedir}/target/classes</outputDirectory>
- <resources>
- <resource>
- <directory>${basedir}</directory>
- <includes>
- <include>JBossORG-EULA.txt</include>
- </includes>
- </resource>
- </resources>
- </build>
- <dependencies>
- <dependency>
- <groupId>org.jboss.javaee</groupId>
- <artifactId>jboss-jaspi-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.jboss.security</groupId>
- <artifactId>identity-spi</artifactId>
- </dependency>
- <dependency>
- <groupId>org.jboss.security</groupId>
- <artifactId>authorization-spi</artifactId>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
-</project>
Copied: projects/security/security-spi/tags/2.0.2.Beta4/spi/pom.xml (from rev 68970, projects/security/security-spi/trunk/spi/pom.xml)
===================================================================
--- projects/security/security-spi/tags/2.0.2.Beta4/spi/pom.xml (rev 0)
+++ projects/security/security-spi/tags/2.0.2.Beta4/spi/pom.xml 2008-01-15 05:46:21 UTC (rev 68971)
@@ -0,0 +1,63 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.security</groupId>
+ <artifactId>jboss-security-spi-parent</artifactId>
+ <version>2.0.2.Beta4</version>
+ <relativePath>../parent</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jboss-security-spi-bare</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss Security SPI</name>
+ <url>http://labs.jboss.org/portal/jbosssecurity/</url>
+ <description>JBoss Security is a cross cutting project that handles security for the JEMS projects. The SPI Bare contains the SPI excluding the Authorization SPI.</description>
+ <licenses>
+ <license>
+ <name>lgpl</name>
+ <url>http://repository.jboss.com/licenses/lgpl.txt</url>
+ </license>
+ </licenses>
+ <organization>
+ <name>JBoss Inc.</name>
+ <url>http://www.jboss.org</url>
+ </organization>
+ <scm>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/security/security-spi/tags/2.0.2.Beta4</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/security/security-spi/tags/2.0.2.Beta4</developerConnection>
+ <url>http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/security/security-spi/tags/2.0.2.Beta4</url>
+ </scm>
+ <build>
+ <sourceDirectory>${basedir}/src/main</sourceDirectory>
+ <testSourceDirectory>${basedir}/src/tests</testSourceDirectory>
+ <testOutputDirectory>${basedir}/target/test-classes</testOutputDirectory>
+ <finalName>${artifactId}</finalName>
+ <outputDirectory>${basedir}/target/classes</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${basedir}</directory>
+ <includes>
+ <include>JBossORG-EULA.txt</include>
+ </includes>
+ </resource>
+ </resources>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.javaee</groupId>
+ <artifactId>jboss-jaspi-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.security</groupId>
+ <artifactId>identity-spi</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.security</groupId>
+ <artifactId>authorization-spi</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
Deleted: projects/security/security-spi/tags/2.0.2.Beta4/spi/src/main/org/jboss/security/ISecurityManagement.java
===================================================================
--- projects/security/security-spi/trunk/spi/src/main/org/jboss/security/ISecurityManagement.java 2008-01-03 15:50:50 UTC (rev 68601)
+++ projects/security/security-spi/tags/2.0.2.Beta4/spi/src/main/org/jboss/security/ISecurityManagement.java 2008-01-15 05:46:21 UTC (rev 68971)
@@ -1,73 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, 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;
-
-import java.io.Serializable;
-
-import org.jboss.security.audit.AuditManager;
-import org.jboss.security.identitytrust.IdentityTrustManager;
-import org.jboss.security.mapping.MappingManager;
-
-//$Id$
-
-/**
- * Interface to obtain the various managers for security
- * like authentication, authorization, audit, identitytrust etc
- * @author Anil.Saldhana at redhat.com
- * @since Sep 9, 2007
- * @version $Revision$
- */
-public interface ISecurityManagement extends Serializable
-{
- /**
- * Authentication Manager for the security domain
- * @param securityDomain the SecurityDomain
- */
- public AuthenticationManager getAuthenticationManager(String securityDomain);
- /**
- * Authorization Manager for the security domain
- * @param securityDomain the SecurityDomain
- * @return
- */
- public AuthorizationManager getAuthorizationManager(String securityDomain);
-
- /**
- * Mapping manager configured with providers
- * @param securityDomain the SecurityDomain
- * @return
- */
- public MappingManager getMappingManager(String securityDomain);
-
- /**
- * AuditManager configured for the security domain
- * @param securityDomain the SecurityDomain
- * @return
- */
- public AuditManager getAuditManager(String securityDomain);
-
- /**
- * IdentityTrustManager configured for the security domain
- * @param securityDomain the SecurityDomain
- * @return
- */
- public IdentityTrustManager getIdentityTrustManager(String securityDomain);
-}
Copied: projects/security/security-spi/tags/2.0.2.Beta4/spi/src/main/org/jboss/security/ISecurityManagement.java (from rev 68745, projects/security/security-spi/trunk/spi/src/main/org/jboss/security/ISecurityManagement.java)
===================================================================
--- projects/security/security-spi/tags/2.0.2.Beta4/spi/src/main/org/jboss/security/ISecurityManagement.java (rev 0)
+++ projects/security/security-spi/tags/2.0.2.Beta4/spi/src/main/org/jboss/security/ISecurityManagement.java 2008-01-15 05:46:21 UTC (rev 68971)
@@ -0,0 +1,73 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, 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;
+
+import java.io.Serializable;
+
+import org.jboss.security.audit.AuditManager;
+import org.jboss.security.identitytrust.IdentityTrustManager;
+import org.jboss.security.mapping.MappingManager;
+
+//$Id$
+
+/**
+ * Interface to obtain the various managers for security
+ * like authentication, authorization, audit, identitytrust etc
+ * @author Anil.Saldhana at redhat.com
+ * @since Sep 9, 2007
+ * @version $Revision$
+ */
+public interface ISecurityManagement extends Serializable
+{
+ /**
+ * Authentication Manager for the security domain
+ * @param securityDomain the SecurityDomain
+ */
+ public AuthenticationManager getAuthenticationManager(String securityDomain);
+ /**
+ * Authorization Manager for the security domain
+ * @param securityDomain the SecurityDomain
+ * @return
+ */
+ public AuthorizationManager getAuthorizationManager(String securityDomain);
+
+ /**
+ * Mapping manager configured with providers
+ * @param securityDomain the SecurityDomain
+ * @return
+ */
+ public MappingManager getMappingManager(String securityDomain);
+
+ /**
+ * AuditManager configured for the security domain
+ * @param securityDomain the SecurityDomain
+ * @return
+ */
+ public AuditManager getAuditManager(String securityDomain);
+
+ /**
+ * IdentityTrustManager configured for the security domain
+ * @param securityDomain the SecurityDomain
+ * @return
+ */
+ public IdentityTrustManager getIdentityTrustManager(String securityDomain);
+}
Copied: projects/security/security-spi/tags/2.0.2.Beta4/spi/src/main/org/jboss/security/callbacks (from rev 68744, projects/security/security-spi/trunk/spi/src/main/org/jboss/security/callbacks)
Deleted: projects/security/security-spi/tags/2.0.2.Beta4/spi/src/main/org/jboss/security/mapping/MappingContext.java
===================================================================
--- projects/security/security-spi/trunk/spi/src/main/org/jboss/security/mapping/MappingContext.java 2008-01-03 15:50:50 UTC (rev 68601)
+++ projects/security/security-spi/tags/2.0.2.Beta4/spi/src/main/org/jboss/security/mapping/MappingContext.java 2008-01-15 05:46:21 UTC (rev 68971)
@@ -1,62 +0,0 @@
-/*
- * JBoss, the OpenSource J2EE webOS
- *
- * Distributable under LGPL license.
- * See terms of license at gnu.org.
- */
-package org.jboss.security.mapping;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-
-/**
- * Generic Context used by the Mapping Framework
- * @author <a href="mailto:Anil.Saldhana at jboss.org">Anil Saldhana</a>
- * @version $Revision$
- * @param <T>
- * @since Aug 24, 2006
- */
-public class MappingContext<T>
-{
- private List<MappingProvider<T>> modules = new ArrayList<MappingProvider<T>>();
- private MappingResult<T> result;
-
- public MappingContext(List<MappingProvider<T>> mod)
- {
- this.modules = mod;
- }
-
- /**
- * Get the set of mapping modules
- * @return
- */
- public List<MappingProvider<T>> getModules()
- {
- return this.modules;
- }
-
- /**
- * Apply mapping semantics on the passed object
- * @param contextMap Read-only Contextual Map
- * @param mappedObject an object on which mapping will be applied
- */
- public void performMapping(Map<String,Object> contextMap, T mappedObject)
- {
- int len = modules.size();
-
- result = new MappingResult<T>();
-
- for(int i = 0 ; i < len; i++)
- {
- MappingProvider<T> mp = (MappingProvider<T>)modules.get(i);
- mp.setMappingResult(result);
- mp.performMapping(contextMap, mappedObject);
- }
- }
-
- public MappingResult<T> getMappingResult()
- {
- return result;
- }
-}
\ No newline at end of file
Copied: projects/security/security-spi/tags/2.0.2.Beta4/spi/src/main/org/jboss/security/mapping/MappingContext.java (from rev 68745, projects/security/security-spi/trunk/spi/src/main/org/jboss/security/mapping/MappingContext.java)
===================================================================
--- projects/security/security-spi/tags/2.0.2.Beta4/spi/src/main/org/jboss/security/mapping/MappingContext.java (rev 0)
+++ projects/security/security-spi/tags/2.0.2.Beta4/spi/src/main/org/jboss/security/mapping/MappingContext.java 2008-01-15 05:46:21 UTC (rev 68971)
@@ -0,0 +1,76 @@
+/*
+ * JBoss, the OpenSource J2EE webOS
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+package org.jboss.security.mapping;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Generic Context used by the Mapping Framework
+ * @author <a href="mailto:Anil.Saldhana at jboss.org">Anil Saldhana</a>
+ * @version $Revision$
+ * @param <T>
+ * @since Aug 24, 2006
+ */
+public class MappingContext<T>
+{
+ private List<MappingProvider<T>> modules = new ArrayList<MappingProvider<T>>();
+ private MappingResult<T> result;
+
+ public MappingContext(List<MappingProvider<T>> mod)
+ {
+ this.modules = mod;
+ }
+
+ /**
+ * Get the set of mapping modules
+ * @return
+ */
+ public List<MappingProvider<T>> getModules()
+ {
+ return this.modules;
+ }
+
+ /**
+ * Apply mapping semantics on the passed object
+ * @param contextMap Read-only Contextual Map
+ * @param mappedObject an object on which mapping will be applied
+ */
+ public void performMapping(Map<String,Object> contextMap, T mappedObject)
+ {
+ int len = modules.size();
+
+ result = new MappingResult<T>();
+
+ for(int i = 0 ; i < len; i++)
+ {
+ MappingProvider<T> mp = (MappingProvider<T>)modules.get(i);
+ mp.setMappingResult(result);
+ mp.performMapping(contextMap, mappedObject);
+ }
+ }
+
+ /**
+ *
+ * @return Result of previous mapping operation
+ */
+ public MappingResult<T> getMappingResult()
+ {
+ return result;
+ }
+
+ /**
+ * Optimization Step to determine if we have configured mapping modules
+ * to avoid unnecessary mapping step
+ * @return true - at least one mapping provider is configured
+ */
+ public boolean hasModules()
+ {
+ return this.modules.size() > 0;
+ }
+}
\ No newline at end of file
Deleted: projects/security/security-spi/tags/2.0.2.Beta4/spi/src/main/org/jboss/security/mapping/MappingManager.java
===================================================================
--- projects/security/security-spi/trunk/spi/src/main/org/jboss/security/mapping/MappingManager.java 2008-01-03 15:50:50 UTC (rev 68601)
+++ projects/security/security-spi/tags/2.0.2.Beta4/spi/src/main/org/jboss/security/mapping/MappingManager.java 2008-01-15 05:46:21 UTC (rev 68971)
@@ -1,35 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, 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.mapping;
-
-import org.jboss.security.BaseSecurityManager;
-
-/**
- * Manager that is used for mapping various types
- * @author Anil.Saldhana at redhat.com
- * @since Mar 9, 2007
- * @version $Revision$
- */
-public interface MappingManager<T> extends BaseSecurityManager
-{
- MappingContext<T> getMappingContext(Class<T> mappingType);
-}
\ No newline at end of file
Copied: projects/security/security-spi/tags/2.0.2.Beta4/spi/src/main/org/jboss/security/mapping/MappingManager.java (from rev 68745, projects/security/security-spi/trunk/spi/src/main/org/jboss/security/mapping/MappingManager.java)
===================================================================
--- projects/security/security-spi/tags/2.0.2.Beta4/spi/src/main/org/jboss/security/mapping/MappingManager.java (rev 0)
+++ projects/security/security-spi/tags/2.0.2.Beta4/spi/src/main/org/jboss/security/mapping/MappingManager.java 2008-01-15 05:46:21 UTC (rev 68971)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, 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.mapping;
+
+import org.jboss.security.BaseSecurityManager;
+
+/**
+ * Manager that is used for mapping various types
+ * @author Anil.Saldhana at redhat.com
+ * @since Mar 9, 2007
+ * @version $Revision$
+ */
+public interface MappingManager extends BaseSecurityManager
+{
+ <T> MappingContext<T> getMappingContext(Class<T> mappingType);
+}
\ No newline at end of file
Deleted: projects/security/security-spi/tags/2.0.2.Beta4/spi/src/tests/org/jboss/test/security/factories/SomeAuthorizationManager.java
===================================================================
--- projects/security/security-spi/trunk/spi/src/tests/org/jboss/test/security/factories/SomeAuthorizationManager.java 2008-01-03 15:50:50 UTC (rev 68601)
+++ projects/security/security-spi/tags/2.0.2.Beta4/spi/src/tests/org/jboss/test/security/factories/SomeAuthorizationManager.java 2008-01-15 05:46:21 UTC (rev 68971)
@@ -1,79 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, 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.test.security.factories;
-
-import java.security.Principal;
-import java.security.acl.Group;
-import java.util.Map;
-import java.util.Set;
-
-import org.jboss.security.AuthorizationManager;
-import org.jboss.security.authorization.AuthorizationException;
-import org.jboss.security.authorization.EntitlementHolder;
-import org.jboss.security.authorization.Resource;
-import org.jboss.security.identity.Identity;
-
-//$Id$
-
-/**
- * Test AuthorizationManager
- * @author Anil.Saldhana at redhat.com
- * @since Oct 11, 2007
- * @version $Revision$
- */
-public class SomeAuthorizationManager implements AuthorizationManager
-{
- public SomeAuthorizationManager(String securityDomain)
- {
- }
-
- public int authorize(Resource resource) throws AuthorizationException
- {
- return 0;
- }
-
- public Set<Principal> getUserRoles(Principal principal)
- {
- return null;
- }
-
- public String getSecurityDomain()
- {
- return null;
- }
-
- public boolean doesUserHaveRole(Principal principal, Set<Principal> roles)
- {
- return false;
- }
-
- public EntitlementHolder<?> entitlements(Resource resource,
- Identity identity) throws AuthorizationException
- {
- return null;
- }
-
- public Group getTargetRoles(Principal targetPrincipal, Map<String, Object> contextMap)
- {
- return null;
- }
-}
\ No newline at end of file
Copied: projects/security/security-spi/tags/2.0.2.Beta4/spi/src/tests/org/jboss/test/security/factories/SomeAuthorizationManager.java (from rev 68743, projects/security/security-spi/trunk/spi/src/tests/org/jboss/test/security/factories/SomeAuthorizationManager.java)
===================================================================
--- projects/security/security-spi/tags/2.0.2.Beta4/spi/src/tests/org/jboss/test/security/factories/SomeAuthorizationManager.java (rev 0)
+++ projects/security/security-spi/tags/2.0.2.Beta4/spi/src/tests/org/jboss/test/security/factories/SomeAuthorizationManager.java 2008-01-15 05:46:21 UTC (rev 68971)
@@ -0,0 +1,100 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, 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.test.security.factories;
+
+import java.security.Principal;
+import java.security.acl.Group;
+import java.util.Map;
+import java.util.Set;
+
+import javax.security.auth.Subject;
+import javax.security.auth.callback.CallbackHandler;
+
+import org.jboss.security.AuthorizationManager;
+import org.jboss.security.authorization.AuthorizationException;
+import org.jboss.security.authorization.EntitlementHolder;
+import org.jboss.security.authorization.Resource;
+import org.jboss.security.identity.Identity;
+import org.jboss.security.identity.RoleGroup;
+
+//$Id$
+
+/**
+ * Test AuthorizationManager
+ * @author Anil.Saldhana at redhat.com
+ * @since Oct 11, 2007
+ * @version $Revision$
+ */
+public class SomeAuthorizationManager implements AuthorizationManager
+{
+ public SomeAuthorizationManager(String securityDomain)
+ {
+ }
+
+ public int authorize(Resource resource) throws AuthorizationException
+ {
+ return 0;
+ }
+
+ public Set<Principal> getUserRoles(Principal principal)
+ {
+ return null;
+ }
+
+ public String getSecurityDomain()
+ {
+ return null;
+ }
+
+ public boolean doesUserHaveRole(Principal principal, Set<Principal> roles)
+ {
+ return false;
+ }
+
+ public EntitlementHolder<?> entitlements(Resource resource,
+ Identity identity) throws AuthorizationException
+ {
+ return null;
+ }
+
+ public Group getTargetRoles(Principal targetPrincipal, Map<String, Object> contextMap)
+ {
+ return null;
+ }
+
+ public int authorize(Resource resource, Subject subject,
+ RoleGroup role) throws AuthorizationException
+ {
+ return 0;
+ }
+
+ public int authorize(Resource resource, Subject subject,
+ Group roleGroup) throws AuthorizationException
+ {
+ return 0;
+ }
+
+ public RoleGroup getSubjectRoles(Subject authenticatedSubject, CallbackHandler cbh)
+ {
+ return null;
+ }
+}
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list