'@see: C{L{Extension.getExtensionArgs}}'

def getExtensionArgs(self):

    ns_args = {'preferred_auth_policies': '    '.join(self.preferred_auth_policies)}
    if (self.max_auth_age is not None):
        ns_args['max_auth_age'] = str(self.max_auth_age)
    if self.preferred_auth_level_types:
        preferred_types = []
        for auth_level_uri in self.preferred_auth_level_types:
            alias = self._getAlias(auth_level_uri)
            ns_args[('auth_level.ns.%s' % (alias,))] = auth_level_uri
            preferred_types.append(alias)
        ns_args['preferred_auth_level_types'] = '    '.join(preferred_types)
    return ns_args
