Package org.apache.shiro.authz.annotation
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 Logical An enum for specifying a logical operation that can be used for interpreting authorization annotations -
Annotation Types Summary Annotation Type Description RequiresAuthentication Requires the current Subject to have been authenticated during their current session for the annotated class/instance/method to be accessed or invoked.RequiresGuest Requires 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.RequiresPermissions Requires the current executor's Subject to imply a particular permission in order to execute the annotated method.RequiresRoles Requires the currently executingSubject
to have all of the specified roles.RequiresUser Requires the current Subject to be an application user for the annotated class/instance/method to be accessed or invoked.