def check_role(self, identifiers, role_s, logical_operator):
self.assert_realms_configured()<EOL>has_role_s = self.has_role_collective(identifiers,<EOL>role_s, logical_operator)<EOL>if not has_role_s:<EOL><INDENT>msg = "<STR_LIT>"<EOL>raise UnauthorizedException(msg)<EOL><DEDENT>
:param identifiers: a collection of identifiers
:type identifiers:  subject_abcs.IdentifierCollection

:param role_s: 1..N role identifiers
:type role_s:  a String or Set of Strings

:param logical_operator:  indicates whether all or at least one
                          permission check is true (any)
:type: any OR all (from python standard library)

:raises UnauthorizedException: if Subject not assigned to all roles