'Verify the key authorization.
:param KeyAuthorization chall: Challenge that corresponds to
this response.
:param JWK account_public_key:
:return: ``True`` iff verification of the key authorization was
successful.
:rtype: bool'

def verify(self, chall, account_public_key):

    parts = self.key_authorization.split('.')
    if (len(parts) != 2):
        logger.debug('Key    authorization    (%r)    is    not    well    formed', self.key_authorization)
        return False
    if (parts[0] != chall.encode('token')):
        logger.debug('Mismatching    token    in    key    authorization:    %r    instead    of    %r', parts[0], chall.encode('token'))
        return False
    thumbprint = jose.b64encode(account_public_key.thumbprint(hash_function=self.thumbprint_hash_function)).decode()
    if (parts[1] != thumbprint):
        logger.debug('Mismatching    thumbprint    in    key    authorization:    %r    instead    of    %r', parts[0], thumbprint)
        return False
    return True
