Package org.eclipse.jetty.jaas
Interface RoleCheckPolicy
-
- All Known Implementing Classes:
StrictRoleCheckPolicy
public interface RoleCheckPolicy
-
-
Method Summary
All Methods Instance Methods Abstract 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
boolean checkRole(String roleName, Principal runAsRole, Group roles)
Check if a role is either a runAsRole or in a set of roles- 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.
-
-