public interface BulkAccessDecision
BulkAccessDecisionV2security service provider (SSPI) interface for policy enforcement points (PEP) allows support for bulk runtime authorization queries.
|Modifier and Type||Method and Description|
Indicates whether the authorization policies defined for the list of resources allow the requested method to be performed, by utilizing the information contained in the subject and context.
java.util.Map<Resource,Result> isAccessAllowed(javax.security.auth.Subject subject, java.util.Map<Resource,java.util.Map<java.lang.String,SecurityRole>> roles, java.util.List<Resource> resources, ContextHandler handler, Direction direction) throws InvalidPrincipalException
isAccessAllowed method may be called both prior to a
request and after a request has been processed. An indication of whether
the method is being called 1) to determine if the request should be allowed
to be dispatched or 2) to determine if the result of request should be
allowed to be returned is represented by the value of the
Subjectobject containing the identity of the principals that are attempting to perform a request on the specified resource.
Mapof roles (indexed first by resource and then by their names) that are associated with the subject and should be taken into consideration when making the authorization decision.
resources- a list of
Resourceobjects indicating the type of resources on which the subject is attempting to perform a request.
ContextHandlerobject that can optionally be used by an Access Decision to obtain additional information that may be used in making the authorization decision. If the caller is unable to provide additional information, a
nullvalue should be specified.
Directionobject representing whether the authorization check is being performed prior to processing the requests or after the requests have been processed but before the results have been returned. A value of
PRIORindicates that the authorization check is being requested to prior to processing the request. A value of
POSTindicates that the authorization check is being requested after the request has been processed but before the results have been returned. A value of
ONCEindicates that the authorization check is being done once.
isAccessAlloweduses the direction to give it some indication as to which parameters to request (in or out) in the
Mapof indications (indexed by Resource) of whether the authorization policies defined for the resources allow the requested methods to be performed. For each resource in the input list, a return value of
PERMITindicates that the specified subject has permission to perform the operation. A return value of
DENYindicates that the specified subject should not be allowed to perform the operation on the matching resource index in the input list. A value of
ABSTAINindicates that an explicit decision to either permit or deny the requested method could not be determined.
InvalidPrincipalException- if the principal has become invalid (possibly because the principal has been deleted from the system while there was an active subject with that principal).