Class DenyAllAnnotationHandler
java.lang.Object
org.apache.shiro.aop.AnnotationHandler
org.apache.shiro.authz.aop.AuthorizingAnnotationHandler
org.apache.shiro.authz.aop.DenyAllAnnotationHandler
-
Field Summary
Fields inherited from class org.apache.shiro.aop.AnnotationHandler
annotationClass -
Constructor Summary
ConstructorsConstructorDescriptionDefault no-argument constructor that ensures this interceptor looks for -
Method Summary
Modifier and TypeMethodDescriptionvoidCauses aUnauthorizedExceptionto be thrown if a DenyAll annotation is present.Methods inherited from class org.apache.shiro.aop.AnnotationHandler
getAnnotationClass, getSubject, setAnnotationClass
-
Constructor Details
-
DenyAllAnnotationHandler
public DenyAllAnnotationHandler()Default no-argument constructor that ensures this interceptor looks forRequiresGuestannotations in a method declaration.
-
-
Method Details
-
assertAuthorized
Causes aUnauthorizedExceptionto be thrown if a DenyAll annotation is present.- Specified by:
assertAuthorizedin classAuthorizingAnnotationHandler- Parameters:
a- the annotation to check for one or more roles- Throws:
UnauthorizedException- when the DenyAll annotation is present
-