def METHOD_NAME(self, message):
    pubkey = self._get_pubkey(message["SigningCertURL"])
    signature = self._get_signature(message)
    data = self._get_data_to_sign(message)
    try:
        pubkey.verify(signature, data, PKCS1v15(), SHA256())
    except _InvalidSignature:
        raise InvalidMessageError("Invalid Signature") from None