checkRole(String, SecSubject ) method

Same as the checkRole(String roleName) method but you may explicitly identify the subject whose roles are being tested.

Syntax

boolean checkRole ( String roleName , SecSubject subject )

Parameters

Returns

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

Exceptions

Usage

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