public class PermissionAnnotationMethodInterceptor extends AuthorizingAnnotationMethodInterceptor
RequiresPermissions
annotation is declared, and if so, performs
a permission check to see if the calling Subject
is allowed to call the method.Constructor and Description |
---|
PermissionAnnotationMethodInterceptor()
Default no-argument constructor that ensures this interceptor looks for
RequiresPermissions annotations in a method declaration. |
PermissionAnnotationMethodInterceptor(AnnotationResolver resolver) |
assertAuthorized, invoke
getAnnotation, getHandler, getResolver, setHandler, setResolver, supports
getSubject
public PermissionAnnotationMethodInterceptor()
RequiresPermissions
annotations in a method declaration.public PermissionAnnotationMethodInterceptor(AnnotationResolver resolver)
resolver
- Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.