#[non_exhaustive]pub enum CheckCode {
Show 107 variants
NoSignatures,
SignatureCountWithinLimits,
SignatureLimitExceeded,
SignaturesUnsupported,
DocumentsAllCovered,
DocumentsUncovered,
DocumentsCoverageUndetermined,
SigStructure,
SigStructureInvalid,
SigPlacement,
SigPlacementInvalid,
C14nMethodAllowed,
C14nUnsupported,
SignatureAlgorithmAllowed,
DigestAlgorithmAllowed,
AlgorithmRejected,
AlgorithmLegacyAllowed,
TransformsAllowed,
TransformNotAllowed,
ReferencesSameDocument,
ReferenceExternal,
ReferencesResolve,
ReferenceUnresolved,
ReferenceScopeComplete,
ReferenceScopeIncomplete,
ReferenceScopeUnknown,
CountersignatureBindingOk,
CountersignatureBindingMissing,
CountersignatureBindingMismatch,
NestedSignaturesUnsupported,
ReferenceDigestOk,
ReferenceDigestMismatch,
SignedInfoCanonicalization,
SignedInfoCanonicalizationFailed,
SignatureValueOk,
SignatureValueInvalid,
XadesPresent,
XadesAbsent,
XadesNotValidated,
XadesExtraQualifyingProperties,
XadesSigningCertificateBound,
XadesSigningCertificateMismatch,
XadesSigningCertificateAbsent,
XadesSignaturePolicyImplied,
XadesSignaturePolicyExplicit,
SigningCertificateAvailable,
SigningCertificateMissing,
SigningTimePresent,
CertMalformed,
CertPathOk,
CertPathUnknown,
CertPathUntrusted,
CertPathSearchExhausted,
CertPathLengthExceeded,
CertExpired,
CertNotYetValid,
CertSignatureInvalid,
CertAlgorithmRejected,
CertKeyUsageInvalid,
CertKeyUsageAdvisory,
CertBasicConstraintsInvalid,
CertNameConstraintViolation,
CertUnsupportedCriticalExtension,
RevocationPolicy,
RevocationNotChecked,
RevocationOk,
CertRevoked,
CertRevokedAfterValidationTime,
RevocationStatusUnknown,
RevocationStatusUnknownByResponder,
RevocationDataStale,
RevocationDataInvalid,
OcspResponderTrusted,
RevocationSourcesDisagree,
OnlineFetchFailed,
TrustListLoaded,
TrustListUnverified,
TrustListSignatureOk,
TrustListSignatureInvalid,
TrustListSignerMismatch,
TrustListSignerUnqualified,
TrustListServiceNotGranted,
CertificateQualified,
CertificateNotQualified,
CertificateQualifiedUnknown,
SignatureTimestampPresent,
SignatureTimestampAbsent,
TimestampNotChecked,
TimestampTokenParsed,
TimestampImprintOk,
TimestampImprintMismatch,
TimestampSignatureOk,
TimestampSignatureInvalid,
TimestampTsaCertificateOk,
TimestampTsaCertificateInvalid,
TimestampTsaPathOk,
TimestampTsaPathUntrusted,
TimestampTsaPathUnknown,
TimestampBeforeSigningTime,
TimestampVerified,
ArchiveTimestampPresent,
DossierTimestampVerified,
DossierTimestampInvalid,
DossierTimestampNotChecked,
DocumentTimestampVerified,
DocumentTimestampInvalid,
DocumentTimestampNotChecked,
}Expand description
Every check code this crate can emit.
The enum is #[non_exhaustive], because a release that learns to
check something new emits a new code for it. Match it with a
wildcard arm, and treat an unknown code as blocking unless the
CheckStatus beside it is passed. CheckCode::ALL lists
every code the build in use knows.
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.
NoSignatures
SignatureCountWithinLimits
SignatureLimitExceeded
SignaturesUnsupported
DocumentsAllCovered
DocumentsUncovered
DocumentsCoverageUndetermined
SigStructure
SigStructureInvalid
SigPlacement
SigPlacementInvalid
C14nMethodAllowed
C14nUnsupported
SignatureAlgorithmAllowed
DigestAlgorithmAllowed
AlgorithmRejected
AlgorithmLegacyAllowed
TransformsAllowed
TransformNotAllowed
ReferencesSameDocument
ReferenceExternal
ReferencesResolve
ReferenceUnresolved
ReferenceScopeComplete
ReferenceScopeIncomplete
ReferenceScopeUnknown
CountersignatureBindingOk
CountersignatureBindingMissing
CountersignatureBindingMismatch
NestedSignaturesUnsupported
ReferenceDigestOk
ReferenceDigestMismatch
SignedInfoCanonicalization
SignedInfoCanonicalizationFailed
SignatureValueOk
SignatureValueInvalid
XadesPresent
XadesAbsent
XadesNotValidated
XadesExtraQualifyingProperties
XadesSigningCertificateBound
XadesSigningCertificateMismatch
XadesSigningCertificateAbsent
XadesSignaturePolicyImplied
XadesSignaturePolicyExplicit
SigningCertificateAvailable
SigningCertificateMissing
SigningTimePresent
CertMalformed
CertPathOk
CertPathUnknown
CertPathUntrusted
CertPathSearchExhausted
CertPathLengthExceeded
CertExpired
CertNotYetValid
CertSignatureInvalid
CertAlgorithmRejected
CertKeyUsageInvalid
CertKeyUsageAdvisory
CertBasicConstraintsInvalid
CertNameConstraintViolation
CertUnsupportedCriticalExtension
RevocationPolicy
RevocationNotChecked
RevocationOk
CertRevoked
CertRevokedAfterValidationTime
RevocationStatusUnknown
RevocationStatusUnknownByResponder
RevocationDataStale
RevocationDataInvalid
OcspResponderTrusted
RevocationSourcesDisagree
OnlineFetchFailed
TrustListLoaded
TrustListUnverified
TrustListSignatureOk
TrustListSignatureInvalid
TrustListSignerMismatch
TrustListSignerUnqualified
TrustListServiceNotGranted
CertificateQualified
CertificateNotQualified
CertificateQualifiedUnknown
SignatureTimestampPresent
SignatureTimestampAbsent
TimestampNotChecked
TimestampTokenParsed
TimestampImprintOk
TimestampImprintMismatch
TimestampSignatureOk
TimestampSignatureInvalid
TimestampTsaCertificateOk
TimestampTsaCertificateInvalid
TimestampTsaPathOk
TimestampTsaPathUntrusted
TimestampTsaPathUnknown
TimestampBeforeSigningTime
TimestampVerified
ArchiveTimestampPresent
DossierTimestampVerified
DossierTimestampInvalid
DossierTimestampNotChecked
DocumentTimestampVerified
DocumentTimestampInvalid
DocumentTimestampNotChecked
Implementations§
Source§impl CheckCode
impl CheckCode
Sourcepub const fn is_revocation(self) -> bool
pub const fn is_revocation(self) -> bool
Whether this code reports a revocation answer.
Revocation is folded into a verdict once, at the signature level, so a timestamp token’s own summary must not fold it in a second time — and a token whose TSA’s revocation status is merely unknown still proves when the signature existed.
Trait Implementations§
impl Copy for CheckCode
impl Eq for CheckCode
impl StructuralPartialEq for CheckCode
Auto Trait Implementations§
impl Freeze for CheckCode
impl RefUnwindSafe for CheckCode
impl Send for CheckCode
impl Sync for CheckCode
impl Unpin for CheckCode
impl UnsafeUnpin for CheckCode
impl UnwindSafe for CheckCode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.