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