#[non_exhaustive]pub enum KeyInfoWriteError {
InvalidCertificatePem,
InvalidCertificateFormat {
label: String,
},
InvalidCertificateDer,
SigningKey(SigningKeyError),
CertificateKeyMismatch,
}Expand description
Errors while preparing XMLDSig signing <KeyInfo> output.
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.
InvalidCertificatePem
PEM input could not be parsed.
InvalidCertificateFormat
PEM block was not an X.509 certificate.
InvalidCertificateDer
DER bytes could not be decoded as one complete X.509 certificate.
SigningKey(SigningKeyError)
The signing key could not expose public-key material for validation.
CertificateKeyMismatch
The configured certificate does not contain the signing key’s public key.
Trait Implementations§
Source§impl Debug for KeyInfoWriteError
impl Debug for KeyInfoWriteError
Source§impl Display for KeyInfoWriteError
impl Display for KeyInfoWriteError
Source§impl Error for KeyInfoWriteError
impl Error for KeyInfoWriteError
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<KeyInfoWriteError> for SigningError
impl From<KeyInfoWriteError> for SigningError
Source§fn from(source: KeyInfoWriteError) -> Self
fn from(source: KeyInfoWriteError) -> Self
Converts to this type from the input type.
Source§impl From<SigningKeyError> for KeyInfoWriteError
impl From<SigningKeyError> for KeyInfoWriteError
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 KeyInfoWriteError
impl RefUnwindSafe for KeyInfoWriteError
impl Send for KeyInfoWriteError
impl Sync for KeyInfoWriteError
impl Unpin for KeyInfoWriteError
impl UnsafeUnpin for KeyInfoWriteError
impl UnwindSafe for KeyInfoWriteError
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