@staticmethod
def __gen_authorization(scenario):
    '\n        Generates HTTP Authorization Manager\n\n        '
    elements = []
    authorizations = scenario.get('authorization')
    if authorizations:
        clear_flag = False
        if isinstance(authorizations, dict):
            if (('clear' in authorizations) or ('list' in authorizations)):
                clear_flag = authorizations.get('clear', False)
                authorizations = authorizations.get('list', [])
            else:
                authorizations = [authorizations]
        if (not isinstance(authorizations, list)):
            raise TaurusConfigError(('Wrong authorization format: %s' % authorizations))
        auth_manager = JMX.get_auth_manager(authorizations, clear_flag)
        elements.append(auth_manager)
        elements.append(etree.Element('hashTree'))
    return elements
Generates HTTP Authorization Manager
@staticmethod
def __gen_authorization(scenario):
    '\n        \n\n        '
    elements = []
    authorizations = scenario.get('authorization')
    if authorizations:
        clear_flag = False
        if isinstance(authorizations, dict):
            if (('clear' in authorizations) or ('list' in authorizations)):
                clear_flag = authorizations.get('clear', False)
                authorizations = authorizations.get('list', [])
            else:
                authorizations = [authorizations]
        if (not isinstance(authorizations, list)):
            raise TaurusConfigError(('Wrong authorization format: %s' % authorizations))
        auth_manager = JMX.get_auth_manager(authorizations, clear_flag)
        elements.append(auth_manager)
        elements.append(etree.Element('hashTree'))
    return elements