Source code for signxml.exceptions
"""
SignXML exception types.
"""
import cryptography.exceptions
class SignXMLException(Exception):
pass
[docs]
class InvalidSignature(cryptography.exceptions.InvalidSignature, SignXMLException):
"""
Raised when signature validation fails.
"""
[docs]
class InvalidDigest(InvalidSignature):
"""
Raised when digest validation fails (causing the signature to be untrusted).
"""
[docs]
class InvalidCertificate(InvalidSignature):
"""
Raised when certificate validation fails.
"""
class RedundantCert(SignXMLException):
pass