'Check validation.
:param JWS validation:
:param JWK account_public_key:
:rtype: bool'

def check_validation(self, validation, account_public_key):

    if (not validation.verify(key=account_public_key)):
        return False
    try:
        return (self == self.json_loads(validation.payload.decode('utf-8')))
    except jose.DeserializationError as error:
        logger.debug('Checking    validation    for    DNS    failed:    %s', error)
        return False
