public static Set<Permission> resolvePermissions(Collection<String> permissionStrings,
                                                     PermissionResolver permissionResolver) {
        Set<Permission> permissions = new LinkedHashSet<>(permissionStrings.size());
        for (String permissionString : permissionStrings) {
            permissions.add(permissionResolver.resolvePermission(permissionString));
        }
        return permissions;
    }
Utility class to help with String-to-Permission object resolution.

@since 0.1
core/src/main/java/org/apache/shiro/util/PermissionUtils.java