#[non_exhaustive]pub enum DsigError {
Show 15 variants
Policy(PolicyViolation),
Provider(ProviderError),
XmlParse(Error),
Document(XmlDocumentError),
MissingElement {
element: &'static str,
},
InvalidStructure {
reason: &'static str,
},
SelectedNodeUnavailable {
id: String,
},
ParseSignedInfo(ParseError),
ParseKeyInfo(ParseError),
KeyResolution(KeyResolutionError),
ParseManifestReference(ParseError),
Reference(ReferenceProcessingError),
Canonicalization(C14nError),
SignatureValueBase64(DecodeError),
Crypto(SignatureVerificationError),
}Expand description
Errors while running end-to-end XMLDSig verification.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Policy(PolicyViolation)
The compiled verification policy rejected an operation input.
Provider(ProviderError)
The selected provider cannot execute the requested operation.
XmlParse(Error)
XML parsing failed.
Document(XmlDocumentError)
The owned XML document boundary rejected the document or identity.
MissingElement
Required signature element is missing.
InvalidStructure
Signature element tree shape violates XMLDSig structure requirements.
The requested operation start node is absent or has a duplicate ID.
ParseSignedInfo(ParseError)
<SignedInfo> parsing failed.
ParseKeyInfo(ParseError)
<KeyInfo> parsing failed.
KeyResolution(KeyResolutionError)
Configuration-driven key resolution failed.
ParseManifestReference(ParseError)
<Object>/<Manifest>/<Reference> parsing failed.
Reference(ReferenceProcessingError)
Reference processing failed.
Canonicalization(C14nError)
SignedInfo canonicalization failed.
SignatureValueBase64(DecodeError)
SignatureValue base64 decoding failed.
Crypto(SignatureVerificationError)
Cryptographic verification failed before validity decision.
Trait Implementations§
Source§impl Error for DsigError
impl Error for DsigError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()