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

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

Introduction

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

Prototype

public RoleAnnotationHandler() 

Source Link

Document

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

Usage

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

License:Apache License

@Override
public void visitRequiresRoles(RequiresRoles annotation) {
    handler = new RoleAnnotationHandler();
}

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());
}