public class UserAnnotationMethodInterceptor extends AuthorizingAnnotationMethodInterceptor
RequiresUser
annotation
is declared, and if so, ensures the calling Subject
is either
authenticated
or remembered via remember
me services before invoking the method.
This annotation essentially ensures that subject.
.getPrincipal()
!= null
Constructor and Description |
---|
UserAnnotationMethodInterceptor()
Default no-argument constructor that ensures this interceptor looks for
RequiresUser annotations in a method
declaration. |
UserAnnotationMethodInterceptor(AnnotationResolver resolver) |
assertAuthorized, invoke
getAnnotation, getHandler, getResolver, setHandler, setResolver, supports
getSubject
public UserAnnotationMethodInterceptor()
RequiresUser
annotations in a method
declaration.public UserAnnotationMethodInterceptor(AnnotationResolver resolver)
resolver
- Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.