Package jakarta.annotation.security
Annotation Type DeclareRoles
- 
@Documented @Retention(RUNTIME) @Target(TYPE) public @interface DeclareRoles
Used by application to declare security roles. It can be specified on a class. The value of theDeclareRolesannotation is a list of security role names.- Since:
 - Common Annotations 1.0
 
 
- 
- 
Element Detail
- 
value
String[] value
List of security role names. 
 - 
 
 -