public class StrictRoleCheckPolicy extends Object implements RoleCheckPolicy
Enforces that if a runAsRole is present, then the role to check must be the same as that runAsRole and the set of static roles is ignored.
| Constructor and Description |
|---|
StrictRoleCheckPolicy() |
public boolean checkRole(String roleName, Principal runAsRole, Group roles)
RoleCheckPolicycheckRole in interface RoleCheckPolicyroleName - the role to checkrunAsRole - a pushed role (can be null)roles - a Group whose Principals are role namestrue if role equals runAsRole or is a member of roles.Copyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.