pub enum SignatureValidity {
Valid,
Invalid,
MissingKid,
MissingSigningAlgorithm,
SignatureMalformed,
UnsupportedSigningAlgorithm(String),
KeyNotInTrustList(Vec<u8>),
}Expand description
Represents all the possible outcomes of trying to validate a signature for a given certificate.
Variants§
Valid
The signature is valid
Invalid
The signature is not valid
MissingKid
The signature could not be validated because the certificate did not have a kid
MissingSigningAlgorithm
The signature could not be validated because the certificate did not have an alg
SignatureMalformed
The signature in the certificate is malformed
UnsupportedSigningAlgorithm(String)
The signature could not be validated because the signing algorithm is not supported
KeyNotInTrustList(Vec<u8>)
The signature could not be validated because the public key was not found in the given trustlist
Implementations§
Trait Implementations§
Source§impl Debug for SignatureValidity
impl Debug for SignatureValidity
Auto Trait Implementations§
impl Freeze for SignatureValidity
impl RefUnwindSafe for SignatureValidity
impl Send for SignatureValidity
impl Sync for SignatureValidity
impl Unpin for SignatureValidity
impl UnwindSafe for SignatureValidity
Blanket Implementations§
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