Skip to main content

[identity-api-spec commits] [identity-api-spec~git:d5e57c99] Merge branch 'master' of ssh://git.java.net/identity-api-spec~git

  • From: monzillo@...
  • To: commits@...
  • Subject: [identity-api-spec commits] [identity-api-spec~git:d5e57c99] Merge branch 'master' of ssh://git.java.net/identity-api-spec~git
  • Date: Tue, 8 Jan 2013 15:38:01 +0000

Project:    identity-api-spec
Repository: git
Revision:   d5e57c99459a509661ab626a6ae3697cb4733f6e
Author:     monzillo
Date:       2013-01-08 15:36:42 UTC
Link:       

Log Message:
------------
editorial changes to annotation description
changes name parameter to names
changes description of annotation to describe its use in conjunction with both
@IDEntity and @IDEntityProvider
added optional rolesAllowed parameter, and improved description
Merge branch 'master' of ssh://git.java.net/identity-api-spec~git


Revisions:
----------
7c42082b1cf6615bdcb95b485961d1796ede28fa
b19fe08400c4ce0bcef1dbd373c7f86f128242de
ce9a663aa813555f74cd21eb524abef32f5dd780
d5e57c99459a509661ab626a6ae3697cb4733f6e


Modified Paths:
---------------
IdentityApiGit/src/main/java/javax/security/identity/annotations/IDEntityProvider.java
IdentityApiGit/src/main/java/javax/security/identity/annotations/IdentityAttribute.java
IdentityApiGit/src/main/java/javax/security/identity/annotations/MethodAllowed.java
IdentityApiGit/pom.xml


Diffs:
------
diff --git 
a/IdentityApiGit/src/main/java/javax/security/identity/annotations/IDEntityProvider.java
 
b/IdentityApiGit/src/main/java/javax/security/identity/annotations/IDEntityProvider.java
index 110fb23..49bf590 100644
--- 
a/IdentityApiGit/src/main/java/javax/security/identity/annotations/IDEntityProvider.java
+++ 
b/IdentityApiGit/src/main/java/javax/security/identity/annotations/IDEntityProvider.java
@@ -25,7 +25,7 @@ import javax.interceptor.InterceptorBinding;
  * 
  * The interceptor encapsulates the corresponding object as an identity 
entity,
  * and registers a corresponding attribute provider in the attribute service.
- * The fields of the object that are annpotated with @IdentityAttribute, 
+ * The fields of the object that are annotated with @IdentityAttribute, 
  * become the attributes of the entity.
  * 
  * @author ronmonzillo
diff --git 
a/IdentityApiGit/src/main/java/javax/security/identity/annotations/IdentityAttribute.java
 
b/IdentityApiGit/src/main/java/javax/security/identity/annotations/IdentityAttribute.java
index 985e198..502559c 100644
--- 
a/IdentityApiGit/src/main/java/javax/security/identity/annotations/IdentityAttribute.java
+++ 
b/IdentityApiGit/src/main/java/javax/security/identity/annotations/IdentityAttribute.java
@@ -38,5 +38,5 @@ import java.lang.annotation.*;
 @Target(FIELD)
 @Retention(RetentionPolicy.RUNTIME)
 public @interface IdentityAttribute {
-    String name() default "";
+    String[] names() default {};
 }
diff --git 
a/IdentityApiGit/src/main/java/javax/security/identity/annotations/MethodAllowed.java
 
b/IdentityApiGit/src/main/java/javax/security/identity/annotations/MethodAllowed.java
index 0e07612..f36983e 100644
--- 
a/IdentityApiGit/src/main/java/javax/security/identity/annotations/MethodAllowed.java
+++ 
b/IdentityApiGit/src/main/java/javax/security/identity/annotations/MethodAllowed.java
@@ -24,15 +24,16 @@ import javax.interceptor.InterceptorBinding;
  * This annotation is used to bind an Access Control interceptor to an
  * invocation of a Java Method.
  *
- * The interceptor is expected to be bound @AroundInvoke. rolesAllowed is an
- * optional parameter, with default value {}.
+ * The interceptor is expected to be bound @AroundInvoke. 
+ * rolesAllowed is an optional parameter, with default value {}.
  *
  * @author ronmonzillo
  */
 @Inherited
 @Documented
 @InterceptorBinding
-// why can't I define this on METHOD only
-@Target({METHOD, TYPE})
+@Target({TYPE,METHOD})
 @Retention(RetentionPolicy.RUNTIME)
-public @interface MethodAllowed {}
+public @interface MethodAllowed {
+    String[] rolesAllowed() default {};
+}
diff --git a/IdentityApiGit/pom.xml b/IdentityApiGit/pom.xml
index ef7b6ab..892959a 100644
--- a/IdentityApiGit/pom.xml
+++ b/IdentityApiGit/pom.xml
@@ -12,7 +12,7 @@
         <repository>
           <uniqueVersion>false</uniqueVersion>
           <id>maven.java.net</id>
-          <name>maven.java.net-jsr351-snapshots</name>
+          <name>maven.java.net-jsr351-releases</name>
           <url>https://maven.java.net/content/repositories/releases/</url>
         </repository>
         <snapshotRepository>




[identity-api-spec commits] [identity-api-spec~git:d5e57c99] Merge branch 'master' of ssh://git.java.net/identity-api-spec~git

monzillo 01/08/2013
 
 
Close
loading
Please Confirm
Close