public interface BulkRoleMapper
BulkRoleMapperinterface defines the security service provider interface (SSPI) for providers capable of obtaining the appropriate set of roles, for a list of resources, that have been granted to a specific subject.
|Modifier and Type||Method and Description|
Indicates whether the role policies defined for the list of resources allow the requestor to posses a given role by utilizing the information contained in the subject and context.
java.util.Map<Resource,java.util.Map<java.lang.String,SecurityRole>> getRoles(javax.security.auth.Subject subject, java.util.List<Resource> resource, ContextHandler handler)
Subjectobject containing the identity of the principals that are attempting to perform a request on the specified resource.
Resourceobject indicating the type of resource on which the subject is attempting to perform a request.
ContextHandlerobject that can optionally be used by the Role Mapping provider 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.
Mapof roles indexed first by resource and then by their names, representing the security roles associated with the specified resources that have been granted to the subject.