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
-
roleName –
-
subject –
the subject to check roles on.
Returns
true if the specified subject has the specified role, false if not.
Exceptions
-
IllegalStateException –
if the context has been destroyed.
Usage
true if the specified subject has the specified role, false if not.