Checks if the corresponding Subject/user has the specified roles, returning a bool array indicating
which roles are associated with the given subject.
<p>This is primarily a performance-enhancing method to help reduce the number of
{@link #hasRole} invocations over the wire in client/server systems.
@param subjectPrincipal the application-specific subject/user identifier.
@param roleIdentifiers the application-specific role identifiers to check (usually role ids or role names).
@return an array of bools whose indices correspond to the index of the
roles in the given identifiers. A true value indicates the user has the
role at that index. False indicates the user does not have the role at that index.
Checks if the corresponding Subject/user has the specified roles, returning a bool array indicating which roles are associated with the given subject.
<p>This is primarily a performance-enhancing method to help reduce the number of {@link #hasRole} invocations over the wire in client/server systems.
@param subjectPrincipal the application-specific subject/user identifier. @param roleIdentifiers the application-specific role identifiers to check (usually role ids or role names). @return an array of bools whose indices correspond to the index of the roles in the given identifiers. A true value indicates the user has the role at that index. False indicates the user does not have the role at that index.