Example usage for org.apache.shiro.mgt SecurityManager hasAllRoles

List of usage examples for org.apache.shiro.mgt SecurityManager hasAllRoles

Introduction

In this page you can find the example usage for org.apache.shiro.mgt SecurityManager hasAllRoles.

Prototype

boolean hasAllRoles(PrincipalCollection subjectPrincipal, Collection<String> roleIdentifiers);

Source Link

Document

Returns true if the corresponding Subject/user has all of the specified roles, false otherwise.

Usage

From source file:com.sonicle.webtop.core.app.RunContext.java

License:Open Source License

private static boolean hasAllRoles(SecurityManager manager, PrincipalCollection principals,
        Collection<String> roles) {
    return manager.hasAllRoles(principals, roles);
}