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

def getExtensionArgs(self):

    if (len(self.auth_policies) == 0):
        ns_args = {'auth_policies': 'none'}
    else:
        ns_args = {'auth_policies': '    '.join(self.auth_policies)}
    if (self.nist_auth_level is not None):
        if (self.nist_auth_level not in range(0, 5)):
            raise ValueError('nist_auth_level    must    be    an    integer    between    zero    and    four,    inclusive')
        ns_args['nist_auth_level'] = str(self.nist_auth_level)
    if (self.auth_time is not None):
        if (not TIME_VALIDATOR.match(self.auth_time)):
            raise ValueError('auth_time    must    be    in    RFC3339    format')
        ns_args['auth_time'] = self.auth_time
    return ns_args
