Enum dgc::SignatureValidity[][src]

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)

Tuple Fields

0: String

The signature could not be validated because the signing algorithm is not supported

KeyNotInTrustList(Vec<u8>)

Tuple Fields

0: Vec<u8>

The signature could not be validated because the public key was not found in the given trustlist

Implementations

Checks if the signature is valid

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.