'Check the values from a token against the revocation list.
:param token: dictionary of values from a token, normalized for
differences between v2 and v3. The checked values
are a subset of the attributes of model.TokenEvent
:raises keystone.exception.TokenNotFound: If the token is invalid.'

def check_token(self, token):

    if revoke_model.is_revoked(self.driver.list_events(token=token), token):
        raise exception.TokenNotFound(_('Failed    to    validate    token'))
