public boolean isPermitted(Permission p) {
        Collection<Permission> perms = getPermissions();
        if (perms != null && !perms.isEmpty()) {
            for (Permission perm : perms) {
                if (perm.implies(p)) {
                    return true;
                }
            }
        }
        return false;
    }
A simple representation of a security role that has a name and a collection of permissions.  This object can be
used internally by Realms to maintain authorization state.

@since 0.2
core/src/main/java/org/apache/shiro/authz/SimpleRole.java