Package org.apache.shiro.subject

Examples of org.apache.shiro.subject.Subject.checkPermissions()


        if (perms.size() == 1) {
            subject.checkPermission(perms.iterator().next());
        } else {
            String[] permStrings = new String[perms.size()];
            permStrings = perms.toArray(permStrings);
            subject.checkPermissions(permStrings);
        }
    }
}
View Full Code Here


            }

            RequiresPermissions permissions = getAnnotation(annotations, RequiresPermissions.class);

            if (permissions != null) {
                subject.checkPermissions(permissions.value());
            }

            if (config.getNamedPermissionCheckClass() != null) {

                Annotation namedPermissionCheck = getAnnotation(annotations, config.getNamedPermissionCheckClass());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.