2.3 javax.annotation.security package

The following table lists the annotations included in the javax.annotation.security package:

List of annotations
Annotation nameFunctionality
@DeclareRolesSet the security role reference.
@DenyAllSet in a method that denies access to all security roles.
@PermitAllSet in a class or method that permits access to all security roles.
@RolesAllowedSet a security role for permitting access to a class or method.
@RunAsSet the security role that is applied when executing Servlet or Enterprise Bean.
Organization of this section
2.3.1 @DeclareRoles
2.3.2 @DenyAll
2.3.3 @PermitAll
2.3.4 @RolesAllowed
2.3.5 @RunAs