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

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

Introduction

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

Prototype

public UserAnnotationHandler() 

Source Link

Document

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

Usage

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

License:Apache License

@Override
public void visitRequiresUser(RequiresUser annotation) {
    handler = new UserAnnotationHandler();
}

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