Issues a decision for the check access request for this specified subject to perform the specified action on the specified resource under the specified environmental conditions.
Syntax
int
checkAccess
(
Map< String, Object >
context
,
String
action
,
SecResource
resource
,
SecSubject
subject
,
SecEnvironment
env
) throws SecException
Parameters
-
context –
runtime information relevant to this security context.
-
action –
the action being considered
-
resource –
the target of that action
-
subject –
who is performing that action
-
env –
the circumstances under which that action is being performed.
Returns
one of the VOTE_* contants from Const
Exceptions
-
SecException class –
Thrown if an error occurs. The exception will be logged and after that it is as if the method returned ABSTAIN.
Usage
If subject is null then the check is to be done for the "current" subject - whatever that means for your provider.
one of the VOTE_* contants from Const