Top Description Methods
javax.annotation.security

public @Interface RolesAllowed

extends Annotation
Annotations
@Documented
@Retention:RUNTIME
@Target:TYPE, METHOD
Imports
java.lang.annotation.*

Specifies the list of security 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

Method Summary

Modifier and TypeMethod and Description
public String[]
value()

List of roles that are permitted access.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String[] value()

List of roles that are permitted access.