checkRole(Map< String, Object >, String, SecSubject ) method

Checks if the specified user has the specified role.

Syntax

int checkRole ( Map< String, Object > context , String roleName , SecSubject subject ) throws SecException

Parameters

Returns

one of the VOTE_* contants from Const

Exceptions

Usage

If subject is null then the check is to be done for the "current" subject - whatever that means for the provider.

one of the VOTE_* contants from Const