org.mortbay.jaas

Class StrictRoleCheckPolicy

Implemented Interfaces:
RoleCheckPolicy

public class StrictRoleCheckPolicy
extends java.lang.Object
implements RoleCheckPolicy

StrictRoleChecPolicy

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.

Notes

Usage

Method Summary

boolean
checkRole(Principal role, Principal runAsRole, Group roles)

Method Details

checkRole

public boolean checkRole(Principal role,
                         Principal runAsRole,
                         Group roles)
Specified by:
checkRole in interface RoleCheckPolicy

Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.