Constructs a composite authorization request containing a list of roles.
Syntax
CompositeAuthzRequest
getCompositeAuthzRequest
(
List< String >
roles
,
Class<?extends CompositeAuthzRequest >
container
)
Parameters
-
roles –
list of roles to be checked.
-
container –
CompositeAuthzRequest Class into which the list of RoleAuthzRequest wrapping the specified roles is set.
Returns
composite authorization request containing a list of RoleAuthzRequest.
Usage
This can be used to enforce complex authorization requirements (require a subject to be granted to at least one of the roles or all of the roles etc).
composite authorization request containing a list of RoleAuthzRequest.