[seam-commits] Seam SVN: r8339 - trunk/src/main/org/jboss/seam/annotations/security.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Fri Jun 6 11:20:23 EDT 2008
Author: shane.bryzak at jboss.com
Date: 2008-06-06 11:20:22 -0400 (Fri, 06 Jun 2008)
New Revision: 8339
Added:
trunk/src/main/org/jboss/seam/annotations/security/TokenUsername.java
trunk/src/main/org/jboss/seam/annotations/security/TokenValue.java
Log:
JBSEAM-2079
Added: trunk/src/main/org/jboss/seam/annotations/security/TokenUsername.java
===================================================================
--- trunk/src/main/org/jboss/seam/annotations/security/TokenUsername.java (rev 0)
+++ trunk/src/main/org/jboss/seam/annotations/security/TokenUsername.java 2008-06-06 15:20:22 UTC (rev 8339)
@@ -0,0 +1,24 @@
+package org.jboss.seam.annotations.security;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Inherited;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+ * Flags an entity field or method as representing the username for an authentication token
+ *
+ * @author Shane Bryzak
+ */
+ at Target({METHOD,FIELD})
+ at Documented
+ at Retention(RUNTIME)
+ at Inherited
+public @interface TokenUsername
+{
+
+}
Added: trunk/src/main/org/jboss/seam/annotations/security/TokenValue.java
===================================================================
--- trunk/src/main/org/jboss/seam/annotations/security/TokenValue.java (rev 0)
+++ trunk/src/main/org/jboss/seam/annotations/security/TokenValue.java 2008-06-06 15:20:22 UTC (rev 8339)
@@ -0,0 +1,24 @@
+package org.jboss.seam.annotations.security;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Inherited;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+ * Flags an entity field or method as representing the value for an authentication token
+ *
+ * @author Shane Bryzak
+ */
+ at Target({METHOD,FIELD})
+ at Documented
+ at Retention(RUNTIME)
+ at Inherited
+public @interface TokenValue
+{
+
+}
More information about the seam-commits
mailing list