#[non_exhaustive]pub enum DsigError {
XmlParse(Error),
MissingElement {
element: &'static str,
},
InvalidStructure {
reason: &'static str,
},
ParseSignedInfo(ParseError),
ParseKeyInfo(ParseError),
ParseManifestReference(ParseError),
Reference(ReferenceProcessingError),
Canonicalization(C14nError),
SignatureValueBase64(DecodeError),
Crypto(SignatureVerificationError),
DisallowedUri {
uri: String,
},
DisallowedTransform {
algorithm: String,
},
}Expand description
Errors while running end-to-end XMLDSig verification.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
XmlParse(Error)
XML parsing failed.
MissingElement
Required signature element is missing.
InvalidStructure
Signature element tree shape violates XMLDSig structure requirements.
ParseSignedInfo(ParseError)
<SignedInfo> parsing failed.
ParseKeyInfo(ParseError)
<KeyInfo> parsing 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.
DisallowedUri
A <Reference> URI class is rejected by policy.
DisallowedTransform
A <Transform> algorithm is rejected by policy.
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)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DecodeError> for DsigError
impl From<DecodeError> for DsigError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for DsigError
impl From<ParseError> for DsigError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ReferenceProcessingError> for DsigError
impl From<ReferenceProcessingError> for DsigError
Source§fn from(source: ReferenceProcessingError) -> Self
fn from(source: ReferenceProcessingError) -> Self
Converts to this type from the input type.
Source§impl From<SignatureVerificationError> for DsigError
impl From<SignatureVerificationError> for DsigError
Source§fn from(source: SignatureVerificationError) -> Self
fn from(source: SignatureVerificationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DsigError
impl !RefUnwindSafe for DsigError
impl Send for DsigError
impl Sync for DsigError
impl Unpin for DsigError
impl UnsafeUnpin for DsigError
impl !UnwindSafe for DsigError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more