#[repr(u32)]pub enum Error {
NotOidc = 1,
NotVerified = 2,
Stale = 3,
Private = 4,
Key = 68,
KeyNotActive = 76,
KeyExpired = 77,
KeyRevoked = 78,
Json = 61,
Duplicate = 62,
Claim = 63,
}Expand description
Why a token or a claim was refused. code() is the number to put in a program error: 61 to 63 are the codes
knos-oidc’s own claims reader returns for the same bytes.
Variants§
NotOidc = 1
The account is not owned by knos-oidc: anyone can create an account holding the same bytes.
NotVerified = 2
Not a token account, or its signature has not been checked to the end.
Stale = 3
More than LATE seconds past the token’s exp.
Private = 4
A private key verified the token (ISSUER_PRIVATE): it is one wallet’s word, and Token::read does not take
it. Read it with Token::read_any and check registrant().
Key = 68
Not the key account the token names, or not an account of the same knos-oidc.
KeyNotActive = 76
The key that verified the token is not active (the same codes as knos-oidc’s Step: 76, 77, 78).
KeyExpired = 77
The key that verified the token has expired: nothing attested it for 30 days.
KeyRevoked = 78
The guardian (or a private key’s registrant) revoked the key that verified the token.
Json = 61
The claims are not a JSON object.
Duplicate = 62
A claim that was asked for appears twice.
Claim = 63
The claim is missing or of the wrong type.