pub enum AttestationError {
Show 18 variants
IssuerSignatureFailed(String),
DeviceSignatureFailed(String),
AttestationExpired {
at: String,
},
AttestationRevoked,
TimestampInFuture {
at: String,
},
MissingCapability {
required: Capability,
available: Vec<Capability>,
},
SigningError(String),
DidResolutionError(String),
SerializationError(String),
InvalidInput(String),
CryptoError(String),
InputTooLarge(String),
InternalError(String),
OrgVerificationFailed(String),
OrgAttestationExpired,
OrgDidResolutionFailed(String),
BundleExpired {
age_secs: u64,
max_secs: u64,
},
AttestationTooOld {
age_secs: u64,
max_secs: u64,
},
}Expand description
Errors returned by attestation signing, verification, and related operations.
Variants§
IssuerSignatureFailed(String)
Issuer’s Ed25519 signature did not verify.
DeviceSignatureFailed(String)
Device’s Ed25519 signature did not verify.
AttestationExpired
Attestation has passed its expiry timestamp.
AttestationRevoked
Attestation was explicitly revoked.
TimestampInFuture
Attestation timestamp is in the future (clock skew).
MissingCapability
The attestation does not grant the required capability.
Fields
required: CapabilityThe capability that was required.
available: Vec<Capability>The capabilities present in the attestation.
SigningError(String)
Signing the attestation data failed.
DidResolutionError(String)
DID resolution failed.
SerializationError(String)
JSON serialization or deserialization failed.
InvalidInput(String)
Caller provided invalid input data.
CryptoError(String)
A cryptographic primitive (key parsing, hashing) failed.
InputTooLarge(String)
The JSON input exceeds the allowed size limit.
InternalError(String)
An unexpected internal error occurred.
OrgVerificationFailed(String)
Organizational attestation signature verification failed.
OrgAttestationExpired
The organizational attestation has expired.
OrgDidResolutionFailed(String)
DID resolution for the organization failed.
BundleExpired
The identity bundle is older than its declared maximum age.
AttestationTooOld
The attestation timestamp is older than the caller-specified maximum age.
Trait Implementations§
Source§impl AuthsErrorInfo for AttestationError
impl AuthsErrorInfo for AttestationError
Source§fn error_code(&self) -> &'static str
fn error_code(&self) -> &'static str
Source§fn suggestion(&self) -> Option<&'static str>
fn suggestion(&self) -> Option<&'static str>
Source§impl Debug for AttestationError
impl Debug for AttestationError
Source§impl Display for AttestationError
impl Display for AttestationError
Source§impl Error for AttestationError
impl Error for AttestationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()