Top Description Constructors Methods
org.mortbay.jetty.plus.jaas

public Class StrictRoleCheckPolicy

extends Object
implements RoleCheckPolicy
Class Inheritance
All Implemented Interfaces
org.mortbay.jetty.plus.jaas.RoleCheckPolicy
Imports
java.security.Principal, java.security.acl.Group, java.util.Enumeration

StrictRoleCheckPolicy

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 Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
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
)

Implements org.mortbay.jetty.plus.jaas.RoleCheckPolicy.checkRole.

Check if a role is either a runAsRole or in a set of roles
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

StrictRoleCheckPolicyback to summary
public StrictRoleCheckPolicy()

Method Detail

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

Implements org.mortbay.jetty.plus.jaas.RoleCheckPolicy.checkRole.

Doc from org.mortbay.jetty.plus.jaas.RoleCheckPolicy.checkRole.

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.