'Dispatch to an authentication method.
@param kind: the authentication method
@type kind: L{bytes}'

def tryAuth(self, kind):

    kind = nativeString(kind.replace('-', '_'))
    log.msg(('trying    to    auth    with    %s' % (kind,)))
    f = getattr(self, ('auth_%s' % (kind,)), None)
    if f:
        return f()
