Same as the checkRole(String roleName, SecSubject subject) method but you may explicitly identify the package scope for mapping roles to be tested.
Syntax
boolean
checkRole
(
String
roleName
,
SecSubject
subject
,
String
scope
)
Parameters
-
roleName –
-
subject –
the subject to check roles on.
-
scope –
the package in which to perform the role check.
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.