pub enum IssueError {
KeyParse(String),
KeyMismatch {
cfg_kid: String,
signer_kid: String,
},
JsonEncode(String),
ClockBackwards,
}Variants§
KeyParse(String)
PEM input cannot be parsed as an Ed25519 private key.
KeyMismatch
IssueConfig.kid does not match the kid associated with the
supplied SigningKey. Emitted before any encoding work happens
so a misconfigured pipeline fails closed instead of issuing
tokens against an unrecognized kid.
JsonEncode(String)
jsonwebtoken::encode failed at the JSON serialization step. In
practice this only fires when a Claims field overflows the JSON
number range — the registered claims are all integers within
i64, so production paths cannot hit it.
ClockBackwards
System clock is before UNIX_EPOCH. Cannot happen on a correctly configured machine; surfaces only on hardware-reset / NTP-broken edge cases. Listed for completeness so the engine refuses to emit garbage timestamps rather than panicking.
Trait Implementations§
Source§impl Debug for IssueError
impl Debug for IssueError
Source§impl Display for IssueError
impl Display for IssueError
Source§impl Error for IssueError
impl Error for IssueError
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()