SubjectInfo defaultSubjectInfo = new SubjectInfo(securityRealmName, defaultPrincipalId);
Map<String, SubjectInfo> roleDesignates = Collections.emptyMap();
Map<Principal, Set<String>> principalRoleMap = Collections.singletonMap((Principal)new GeronimoGroupPrincipal("it"), Collections.singleton("content-administrator"));
PermissionCollection uncheckedPermissions = new Permissions();
uncheckedPermissions.add(new WebUserDataPermission("/protected/*", ""));
PermissionCollection excludedPermissions = new Permissions();
uncheckedPermissions.add(new WebResourcePermission("/auth/logon.html", ""));
uncheckedPermissions.add(new WebUserDataPermission("/auth/logon.html", ""));
// uncheckedPermissions.add(new WebResourcePermission("/auth/j_security_check", ""));
uncheckedPermissions.add(new WebUserDataPermission("/auth/j_security_check", ""));
Map<String, PermissionCollection> rolePermissions = new HashMap<String, PermissionCollection>();
PermissionCollection permissions = new Permissions();
permissions.add(new WebResourcePermission("/protected/*", ""));
rolePermissions.put("content-administrator", permissions);
rolePermissions.put("auto-administrator", permissions);
Set<String> securityRoles = new HashSet<String>();
securityRoles.add("content-administrator");