def verify_signed_by_app(data, signature):
 public_certificates = app_identity.get_public_certificates()
 for cert in public_certificates:
  if verify_signature(data, signature, cert.x509_certificate_pem):
   return True
 return False

def verify_signed_by_app ( data , signature ) : public_certificates = app_identity . get_public_certificates ( ) for cert in public_certificates : if verify_signature ( data , signature , cert . x509_certificate_pem ) : return True return False
checks the signature and data against all currently valid certificates for the application .