Class PermitAllAnnotationHandler
java.lang.Object
org.apache.shiro.aop.AnnotationHandler
org.apache.shiro.authz.aop.AuthorizingAnnotationHandler
org.apache.shiro.authz.aop.PermitAllAnnotationHandler
This
AnnotationHandler allows access from any subject
(anonymous or logged in user). It is largely a no-op or for documentation. However, this annotation WILL override
a DenyAll or RolesAllowed
annotation if those annotations are placed at the class level and PermitAll is placed on a method.- Since:
- 2.0
-
Field Summary
Fields inherited from class org.apache.shiro.aop.AnnotationHandler
annotationClass -
Constructor Summary
ConstructorsConstructorDescriptionDefault no-argument constructor that ensures this interceptor looks for aPermitAllannotation in a method declaration. -
Method Summary
Modifier and TypeMethodDescriptionvoidNo-op, thePermitAllannotation allows all subjects (including guests/anonymous).Methods inherited from class org.apache.shiro.aop.AnnotationHandler
getAnnotationClass, getSubject, setAnnotationClass
-
Constructor Details
-
PermitAllAnnotationHandler
public PermitAllAnnotationHandler()Default no-argument constructor that ensures this interceptor looks for aPermitAllannotation in a method declaration.
-
-
Method Details
-
assertAuthorized
No-op, thePermitAllannotation allows all subjects (including guests/anonymous).- Specified by:
assertAuthorizedin classAuthorizingAnnotationHandler- Parameters:
a- the annotation to check for one or more roles
-