Annotations used to restrict which classes, instances, or methods may be accessed or invoked depending on the caller's access abilities or authentication state. Since 1.1, all core annotations were extends to accept Target ElementType.TYPE in addition to ElementType.METHOD
Enum Summary Enum Description LogicalAn enum for specifying a logical operation that can be used for interpreting authorization annotations
Annotation Types Summary Annotation Type Description RequiresAuthenticationRequires the current Subject to have been authenticated during their current session for the annotated class/instance/method to be accessed or invoked. RequiresGuestRequires the current Subject to be a "guest", that is, they are not authenticated or remembered from a previous session for the annotated class/instance/method to be accessed or invoked. RequiresPermissionsRequires the current executor's Subject to imply a particular permission in order to execute the annotated method. RequiresRolesRequires the currently executing
Subjectto have all of the specified roles.
RequiresUserRequires the current Subject to be an application user for the annotated class/instance/method to be accessed or invoked.