'`token_string` should be the string representation from the server.'

@classmethod
def from_string(cls, token_string):

    if isinstance(token_string, six.text_type):
        token_string = token_string.encode('ascii')
    return cls(unhexlify(token_string))
