Author: shane.bryzak(a)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
+ */
+@Target({METHOD,FIELD})
+@Documented
+@Retention(RUNTIME)
+@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
+ */
+@Target({METHOD,FIELD})
+@Documented
+@Retention(RUNTIME)
+@Inherited
+public @interface TokenValue
+{
+
+}
Show replies by date