pub enum ApprovalVerificationError {
}Expand description
Errors returned when an approval credential cannot be verified locally.
Variants§
MissingKeySet
No trusted signing keys were provided for credential verification.
InvalidFormat
The credential was not formatted as <payload>.<signature>.
InvalidBase64
The payload or signature segment was not valid base64url.
InvalidPayloadJson
The decoded payload was not valid approval credential JSON.
UnsupportedVersion(u32)
The credential version is not supported by this runtime.
UnknownKeyId(String)
The credential referenced a key id outside the trusted key set.
UnsupportedAlgorithm(String)
The trusted key advertised an unsupported signing algorithm.
InvalidPublicKeyPem(String)
The trusted key PEM could not be parsed into an Ed25519 verifying key.
InvalidSignature
The Ed25519 signature did not validate against the payload bytes.
SpecHashMismatch
The credential’s spec hash did not match the runtime spec hash.
EnvironmentMismatch
The credential’s environment posture did not match the runtime environment.
Expired
The credential expiry time has passed.
InsufficientCapabilities(Vec<String>)
The credential did not cover every capability required by the runtime spec.
Trait Implementations§
Source§impl Clone for ApprovalVerificationError
impl Clone for ApprovalVerificationError
Source§fn clone(&self) -> ApprovalVerificationError
fn clone(&self) -> ApprovalVerificationError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more