pub enum SignatureBuilderError {
InvalidNamespacePrefix(String),
InvalidNamespaceUri(String),
NamespacePrefixConflict(String),
InvalidId {
element: &'static str,
value: String,
},
MissingReference,
TooManyReferences {
count: usize,
max: usize,
},
TooManyTransforms {
count: usize,
max: usize,
},
InvalidXPathFilterCount {
count: usize,
max: usize,
},
InvalidXPath(String),
SigningAlgorithmDisabled(&'static str),
Serialization(Error),
InvalidUtf8(FromUtf8Error),
}Expand description
Errors produced while validating or serializing an XMLDSig template.
Variants§
InvalidNamespacePrefix(String)
A namespace prefix was not a supported XML NCName.
InvalidNamespaceUri(String)
A namespace URI could not be represented in an XML 1.0 declaration.
NamespacePrefixConflict(String)
An XPath binding would rebind the prefix used by XMLDSig elements.
InvalidId
An XMLDSig Id attribute was not a valid XML NCName.
Fields
MissingReference
XMLDSig requires at least one reference in SignedInfo.
TooManyReferences
A template declared more references than signing and verification accept.
Fields
TooManyTransforms
A reference exceeded the transform-chain limit shared with execution.
Fields
InvalidXPathFilterCount
XPath Filter 2.0 requires a non-empty, bounded expression sequence.
Fields
InvalidXPath(String)
An XPath parameter cannot be parsed or exceeds its resource bounds.
SigningAlgorithmDisabled(&'static str)
SHA-1 algorithms are available for verification but not new signatures.
Serialization(Error)
The XML writer failed.
InvalidUtf8(FromUtf8Error)
The writer unexpectedly emitted bytes that are not UTF-8.
Trait Implementations§
Source§impl Debug for SignatureBuilderError
impl Debug for SignatureBuilderError
Source§impl Display for SignatureBuilderError
impl Display for SignatureBuilderError
Source§impl Error for SignatureBuilderError
impl Error for SignatureBuilderError
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()