Example usage for org.apache.shiro.authz.aop PermissionAnnotationHandler PermissionAnnotationHandler

List of usage examples for org.apache.shiro.authz.aop PermissionAnnotationHandler PermissionAnnotationHandler

Introduction

In this page you can find the example usage for org.apache.shiro.authz.aop PermissionAnnotationHandler PermissionAnnotationHandler.

Prototype

public PermissionAnnotationHandler() 

Source Link

Document

Default no-argument constructor that ensures this handler looks for org.apache.shiro.authz.annotation.RequiresPermissions RequiresPermissions annotations.

Usage

From source file:com.flowlogix.security.internal.aop.HandlerCreateVisitor.java

License:Apache License

@Override
public void visitRequiresPermissions(RequiresPermissions annotation) {
    handler = new PermissionAnnotationHandler();
}

From source file:com.github.aenevala.karaf.shiro.ShiroAnnotationResourceFilter.java

License:Apache License

public ShiroAnnotationResourceFilter() {
    ANNOTATION_MAP.put(RequiresPermissions.class, new PermissionAnnotationHandler());
    ANNOTATION_MAP.put(RequiresRoles.class, new RoleAnnotationHandler());
    ANNOTATION_MAP.put(RequiresUser.class, new UserAnnotationHandler());
    ANNOTATION_MAP.put(RequiresGuest.class, new GuestAnnotationHandler());
    ANNOTATION_MAP.put(RequiresAuthentication.class, new AuthenticatedAnnotationHandler());
}