checkRole(String) method

When a PEP is defined solely in terms of role-based access (no resource is explicitly defined as the target of an access, and the access type is implicit somehow), then this method just performs the role check.

Syntax

boolean checkRole ( String roleName )

Parameters

Returns

true if the current subject has the specified role, false if not.

Exceptions

Usage

true if the current subject has the specified role, false if not.