public abstract class AuthorizingAnnotationHandler extends AnnotationHandler
annotationClass| Constructor and Description |
|---|
AuthorizingAnnotationHandler(Class<? extends Annotation> annotationClass)
Constructs an
AuthorizingAnnotationHandler who processes annotations of the
specified type. |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
assertAuthorized(Annotation a)
Ensures the calling Subject is authorized to execute based on the directive(s) found in the given
annotation.
|
getAnnotationClass, getSubject, setAnnotationClasspublic AuthorizingAnnotationHandler(Class<? extends Annotation> annotationClass)
AuthorizingAnnotationHandler who processes annotations of the
specified type. Immediately calls super(annotationClass).annotationClass - the type of annotation this handler will process.public abstract void assertAuthorized(Annotation a) throws AuthorizationException
a - the Annotation to check for performing an authorization check.AuthorizationException - if the class/instance/method is not allowed to proceed/execute.Copyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.