Package | Description |
---|---|
org.apache.shiro.aop |
Components used to support the framework's AOP/interception support classes.
|
org.apache.shiro.authz.aop |
Contains AOP implementation support classes specifically used for authorization operations, particularly supporting
AOP Method Interceptors and JSR-175 metadata Annotations.
|
Modifier and Type | Method and Description |
---|---|
AnnotationHandler |
AnnotationMethodInterceptor.getHandler()
Returns the
AnnotationHandler used to perform authorization behavior based on
an annotation discovered at runtime. |
Modifier and Type | Method and Description |
---|---|
void |
AnnotationMethodInterceptor.setHandler(AnnotationHandler handler)
Sets the
AnnotationHandler used to perform authorization behavior based on
an annotation discovered at runtime. |
Constructor and Description |
---|
AnnotationMethodInterceptor(AnnotationHandler handler)
Constructs an
AnnotationMethodInterceptor with the
AnnotationHandler that will be used to process annotations of a
corresponding type. |
AnnotationMethodInterceptor(AnnotationHandler handler,
AnnotationResolver resolver)
Constructs an
AnnotationMethodInterceptor with the
AnnotationHandler that will be used to process annotations of a
corresponding type, using the specified AnnotationResolver to acquire annotations
at runtime. |
Modifier and Type | Class and Description |
---|---|
class |
AuthenticatedAnnotationHandler
Handles
RequiresAuthentication annotations and ensures the calling subject is
authenticated before allowing access. |
class |
AuthorizingAnnotationHandler
An AnnotationHandler that executes authorization (access control) behavior based on directive(s) found in a
JSR-175 Annotation.
|
class |
GuestAnnotationHandler
Checks to see if a @
RequiresGuest annotation
is declared, and if so, ensures the calling Subject does not
have an identity before invoking the method. |
class |
PermissionAnnotationHandler
Checks to see if a @
RequiresPermissions annotation is
declared, and if so, performs a permission check to see if the calling Subject is allowed continued
access. |
class |
RoleAnnotationHandler
Checks to see if a @
RequiresRoles annotation is declared, and if so, performs
a role check to see if the calling Subject is allowed to proceed. |
class |
UserAnnotationHandler
Checks to see if a @
RequiresUser annotation
is declared, and if so, ensures the calling Subject is either
authenticated or remembered via remember
me services before allowing access. |
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.