public class GuestAnnotationMethodInterceptor extends AuthorizingAnnotationMethodInterceptor
RequiresGuest
annotation
is declared, and if so, ensures the calling Subject
does not
have an identity
before invoking the method.
This annotation essentially ensures that subject.
.getPrincipal()
== null
Constructor and Description |
---|
GuestAnnotationMethodInterceptor()
Default no-argument constructor that ensures this interceptor looks for
RequiresGuest annotations in a method
declaration. |
GuestAnnotationMethodInterceptor(AnnotationResolver resolver) |
assertAuthorized, invoke
getAnnotation, getHandler, getResolver, setHandler, setResolver, supports
getSubject
public GuestAnnotationMethodInterceptor()
RequiresGuest
annotations in a method
declaration.public GuestAnnotationMethodInterceptor(AnnotationResolver resolver)
resolver
- Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.