Package org.eclipse.jetty.jaas
Class StrictRoleCheckPolicy
- java.lang.Object
-
- org.eclipse.jetty.jaas.StrictRoleCheckPolicy
-
- All Implemented Interfaces:
RoleCheckPolicy
public class StrictRoleCheckPolicy extends Object implements RoleCheckPolicy
StrictRoleCheckPolicyEnforces 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 Summary
Constructors Constructor Description StrictRoleCheckPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckRole(String roleName, Principal runAsRole, Group roles)Check if a role is either a runAsRole or in a set of roles
-
-
-
Method Detail
-
checkRole
public boolean checkRole(String roleName, Principal runAsRole, Group roles)
Description copied from interface:RoleCheckPolicyCheck if a role is either a runAsRole or in a set of roles- Specified by:
checkRolein interfaceRoleCheckPolicy- Parameters:
roleName- the role to checkrunAsRole- a pushed role (can be null)roles- a Group whose Principals are role names- Returns:
trueifroleequalsrunAsRoleor is a member ofroles.
-
-