pub enum CapabilityError {
UntrustedIssuer,
InvalidSignature,
CryptoFloorRejected(String),
NotYetValid,
Expired,
AttenuationViolation(String),
BudgetSplitRejected(BudgetSplitError),
Internal(String),
}Expand description
Errors raised by verify_capability.
Variants§
UntrustedIssuer
Issuer public key is not in the trusted set.
InvalidSignature
Canonical-JSON signature did not verify against the issuer key.
CryptoFloorRejected(String)
Signature material violates the configured crypto floor.
NotYetValid
Token is not yet valid (clock is before issued_at).
Expired
Token has expired.
AttenuationViolation(String)
Attenuated capability token violated the chain-binding rule.
attenuation_proof.parent_scope_hash did not match either the
issuer’s trust-root scope hash (direct issue) or the last
delegation link’s scope_hash (delegated chain).
BudgetSplitRejected(BudgetSplitError)
Sibling-sum budget enforcement rejected this delegation.
Internal(String)
An internal invariant was violated (e.g. canonical-JSON failure).
Trait Implementations§
Source§impl Clone for CapabilityError
impl Clone for CapabilityError
Source§fn clone(&self) -> CapabilityError
fn clone(&self) -> CapabilityError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CapabilityError
impl Debug for CapabilityError
impl Eq for CapabilityError
Source§impl From<BudgetSplitError> for CapabilityError
impl From<BudgetSplitError> for CapabilityError
Source§fn from(err: BudgetSplitError) -> Self
fn from(err: BudgetSplitError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CapabilityError
impl PartialEq for CapabilityError
impl StructuralPartialEq for CapabilityError
Auto Trait Implementations§
impl Freeze for CapabilityError
impl RefUnwindSafe for CapabilityError
impl Send for CapabilityError
impl Sync for CapabilityError
impl Unpin for CapabilityError
impl UnsafeUnpin for CapabilityError
impl UnwindSafe for CapabilityError
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