pub enum AttestationError {
Show 13 variants
VerificationError(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,
},
}Expand description
Errors returned by attestation signing, verification, and related operations.
Variants§
VerificationError(String)
Cryptographic signature verification failed.
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.
Trait Implementations§
Source§impl AuthsErrorInfo for AttestationError
impl AuthsErrorInfo for AttestationError
Source§fn error_code(&self) -> &'static str
fn error_code(&self) -> &'static str
Returns a unique error code string following the AUTHS_* naming convention.
Source§fn suggestion(&self) -> Option<&'static str>
fn suggestion(&self) -> Option<&'static str>
Returns an optional actionable suggestion for resolving the error.
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)>
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()
Auto Trait Implementations§
impl Freeze for AttestationError
impl RefUnwindSafe for AttestationError
impl Send for AttestationError
impl Sync for AttestationError
impl Unpin for AttestationError
impl UnsafeUnpin for AttestationError
impl UnwindSafe for AttestationError
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