#[non_exhaustive]pub enum KeyResolutionError {
AlgorithmMismatch,
InvalidCertificate,
InvalidPublicKey,
AmbiguousCertificate,
UnsupportedDigestAlgorithm(String),
Chain(X509ChainError),
SystemTime,
}Expand description
Failures while applying KeyResolverConfig to parsed key material.
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.
AlgorithmMismatch
A configured or embedded key does not match the signature method.
InvalidCertificate
An embedded certificate could not be parsed completely.
InvalidPublicKey
Configured or embedded public key DER could not be parsed completely.
AmbiguousCertificate
More than one configured certificate satisfies all X.509 selectors.
UnsupportedDigestAlgorithm(String)
An X.509 selector uses a digest algorithm unsupported by this crate.
Chain(X509ChainError)
Embedded certificate path validation failed.
SystemTime
System time was unavailable for certificate validation.
Trait Implementations§
Source§impl Debug for KeyResolutionError
impl Debug for KeyResolutionError
Source§impl Display for KeyResolutionError
impl Display for KeyResolutionError
Source§impl Error for KeyResolutionError
impl Error for KeyResolutionError
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<KeyResolutionError> for DsigError
impl From<KeyResolutionError> for DsigError
Source§fn from(source: KeyResolutionError) -> Self
fn from(source: KeyResolutionError) -> Self
Converts to this type from the input type.
Source§impl From<X509ChainError> for KeyResolutionError
impl From<X509ChainError> for KeyResolutionError
Source§fn from(source: X509ChainError) -> Self
fn from(source: X509ChainError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KeyResolutionError
impl RefUnwindSafe for KeyResolutionError
impl Send for KeyResolutionError
impl Sync for KeyResolutionError
impl Unpin for KeyResolutionError
impl UnsafeUnpin for KeyResolutionError
impl UnwindSafe for KeyResolutionError
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