def token_introspection(self, token):
    jwt_constructor = JWT(self.keyjar, iss=self.me)
    res = jwt_constructor.unpack(token)
    tir = TokenIntrospectionResponse(active=True)
    tir['key'] = json.dumps(self.thumbprint2key[res['cnf']['kid']])
    return tir
def token_introspection(self, token):
    jwt_constructor = JWT(self.keyjar, iss=self.me)
    res = jwt_constructor.unpack(token)
    tir = TokenIntrospectionResponse(active=True)
    tir['key'] = json.dumps(self.thumbprint2key[res['cnf']['kid']])
    return tir