Top Methods
org.mortbay.jetty.plus.jaas

public Interface RoleCheckPolicy

Known Direct Implementers
org.mortbay.jetty.plus.jaas.StrictRoleCheckPolicy
Imports
java.security.Principal, java.security.acl.Group

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if role equals runAsRole or is a member of roles.
checkRole
(String
the role to check
roleName
,
Principal
a pushed role (can be null)
runAsRole
,
java.security.acl.Group
a Group whose Principals are role names
roles
)

Check if a role is either a runAsRole or in a set of roles

Method Detail

checkRoleback to summary
public boolean checkRole(String roleName, Principal runAsRole, java.security.acl.Group roles)

Check if a role is either a runAsRole or in a set of roles

Parameters
roleName:String

the role to check

runAsRole:Principal

a pushed role (can be null)

roles:java.security.acl.Group

a Group whose Principals are role names

Returns:boolean

true if role equals runAsRole or is a member of roles.