#[non_exhaustive]pub enum SigningKeyError {
InvalidKeyPem,
InvalidKeyFormat {
label: String,
},
InvalidKeyDer,
UnsupportedAlgorithm {
uri: String,
},
SigningFailed,
}Expand description
Errors while parsing or using XMLDSig signing keys.
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.
InvalidKeyPem
PEM input could not be parsed.
InvalidKeyFormat
PEM block was not an unencrypted PKCS#8 private key.
InvalidKeyDer
DER bytes could not be decoded for the requested key type.
UnsupportedAlgorithm
The signing key cannot produce the requested XMLDSig algorithm.
SigningFailed
The private-key signing operation failed.
Trait Implementations§
Source§impl Debug for SigningKeyError
impl Debug for SigningKeyError
Source§impl Display for SigningKeyError
impl Display for SigningKeyError
Source§impl Error for SigningKeyError
impl Error for SigningKeyError
1.30.0 · 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<SigningKeyError> for SigningError
impl From<SigningKeyError> for SigningError
Source§fn from(source: SigningKeyError) -> Self
fn from(source: SigningKeyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SigningKeyError
impl RefUnwindSafe for SigningKeyError
impl Send for SigningKeyError
impl Sync for SigningKeyError
impl Unpin for SigningKeyError
impl UnsafeUnpin for SigningKeyError
impl UnwindSafe for SigningKeyError
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