public class StrictRoleCheckPolicy extends java.lang.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() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkRole(java.security.Principal role,
java.security.Principal runAsRole,
java.security.acl.Group roles)
Check if a role is either a runAsRole or in a set of roles
|
public boolean checkRole(java.security.Principal role,
java.security.Principal runAsRole,
java.security.acl.Group roles)
RoleCheckPolicycheckRole in interface RoleCheckPolicyrole - the role to checkrunAsRole - a pushed role (can be null)roles - a Group whose Principals are role namesCopyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.