javax.annotation.security
Annotation Type RolesAllowed


@Documented
@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD})
public @interface RolesAllowed

Specifies the list of roles permitted to access method(s) in an application. The value of the RolesAllowed annotation is a list of security role names. This annotation can be specified on a class or on method(s). Specifying it at a class level means that it applies to all the methods in the class. Specifying it on a method means that it is applicable to that method only. If applied at both the class and methods level , the method value overrides the class value if the two conflict.

Since:
Common Annotations 1.0

Required Element Summary
 java.lang.String[] value
           
 

Element Detail

value

public abstract java.lang.String[] value


Submit a bug or feature

Copyright © 2009, 2010, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 4-June-2010 04:34