Package org.apache.shiro.authz.annotation
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
-
ClassDescriptionAn enum for specifying a logical operation that can be used for interpreting authorization annotationsRequires the current Subject to have been authenticated during their current session for the annotated class/instance/method to be accessed or invoked.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.Requires the current executor's Subject to imply a particular permission in order to execute the annotated method.Requires the currently executing
Subjectto have all of the specified roles.Requires the current Subject to be an application user for the annotated class/instance/method to be accessed or invoked.