[jboss-cvs] Picketbox SVN: r34 - trunk/security-spi/spi/src/main/java/org/jboss/security/annotation.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Feb 17 06:43:12 EST 2010


Author: anil.saldhana at jboss.com
Date: 2010-02-17 06:43:12 -0500 (Wed, 17 Feb 2010)
New Revision: 34

Added:
   trunk/security-spi/spi/src/main/java/org/jboss/security/annotation/SecurityConfig.java
   trunk/security-spi/spi/src/main/java/org/jboss/security/annotation/SecurityMapping.java
Modified:
   trunk/security-spi/spi/src/main/java/org/jboss/security/annotation/SecurityDomain.java
Log:
new annotations

Added: trunk/security-spi/spi/src/main/java/org/jboss/security/annotation/SecurityConfig.java
===================================================================
--- trunk/security-spi/spi/src/main/java/org/jboss/security/annotation/SecurityConfig.java	                        (rev 0)
+++ trunk/security-spi/spi/src/main/java/org/jboss/security/annotation/SecurityConfig.java	2010-02-17 11:43:12 UTC (rev 34)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.annotation;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Inherited;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * @author Anil.Saldhana at redhat.com
+ * @since Feb 16, 2010
+ */
+ at Inherited
+ at Target(ElementType.TYPE)
+ at Retention(RetentionPolicy.RUNTIME)
+ at Documented
+public @interface SecurityConfig 
+{
+   String fileName(); 
+}
\ No newline at end of file

Modified: trunk/security-spi/spi/src/main/java/org/jboss/security/annotation/SecurityDomain.java
===================================================================
--- trunk/security-spi/spi/src/main/java/org/jboss/security/annotation/SecurityDomain.java	2010-02-17 11:42:45 UTC (rev 33)
+++ trunk/security-spi/spi/src/main/java/org/jboss/security/annotation/SecurityDomain.java	2010-02-17 11:43:12 UTC (rev 34)
@@ -21,6 +21,7 @@
  */
 package org.jboss.security.annotation;
 
+import java.lang.annotation.Documented;
 import java.lang.annotation.ElementType;
 import java.lang.annotation.Inherited;
 import java.lang.annotation.Retention;
@@ -38,6 +39,7 @@
 @Inherited
 @Target(ElementType.TYPE)
 @Retention(RetentionPolicy.RUNTIME)
+ at Documented
 public @interface SecurityDomain 
 {
    String value();

Added: trunk/security-spi/spi/src/main/java/org/jboss/security/annotation/SecurityMapping.java
===================================================================
--- trunk/security-spi/spi/src/main/java/org/jboss/security/annotation/SecurityMapping.java	                        (rev 0)
+++ trunk/security-spi/spi/src/main/java/org/jboss/security/annotation/SecurityMapping.java	2010-02-17 11:43:12 UTC (rev 34)
@@ -0,0 +1,55 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.annotation;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Inherited;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+
+/**
+ * Annotation for the mapping functionality (Principal, Role, Attribute)
+ * @author Anil.Saldhana at redhat.com
+ * @since Feb 14, 2010
+ */
+ at Inherited
+ at Target(ElementType.TYPE)
+ at Retention(RetentionPolicy.RUNTIME)
+ at Documented
+public @interface SecurityMapping 
+{
+   /**
+    * ROLE, PRINCIPAL or ATTRIBUTE
+    * @return
+    */
+   String type() default "ROLE";
+   
+   /**
+    * Example, X509 can have SubjectDNMapper
+    * @return
+    */
+   String mappingClassName() default "";
+
+}
\ No newline at end of file




More information about the jboss-cvs-commits mailing list