checkAccess(String, SecResource ) method

This is the primary method of interest to Policy Enforcement Point (PEP) code.

Syntax

boolean checkAccess ( String action , SecResource resource )

Parameters

Returns

true if access is allowed, false if access is denied.

Exceptions

Usage

It directs an authorization request to the configured PDP (Policy

Decision

Point) in the security context of the authenticated user of the application.

This is a convenience method when the PEP has no environment information to provide to the PDP.

true if access is allowed, false if access is denied.