pub enum ChallengeError {
NotSigned,
Expired,
Replayed,
WrongAudience,
}Expand description
Why an answer was not accepted. A caller should log this but tell the prover only that authentication failed.
Variants§
NotSigned
The signature does not verify, or was made over a different challenge.
Expired
The challenge was answered after it expired.
Replayed
This nonce was already spent. Either a replay, or a duplicate delivery.
WrongAudience
The challenge names a different audience than this verifier. An answer given to another service must be worthless here.
Trait Implementations§
Source§impl Clone for ChallengeError
impl Clone for ChallengeError
impl Copy for ChallengeError
Source§impl Debug for ChallengeError
impl Debug for ChallengeError
impl Eq for ChallengeError
Source§impl PartialEq for ChallengeError
impl PartialEq for ChallengeError
impl StructuralPartialEq for ChallengeError
Auto Trait Implementations§
impl Forget for ChallengeError
impl Freeze for ChallengeError
impl Move for ChallengeError
impl RefUnwindSafe for ChallengeError
impl Send for ChallengeError
impl Sync for ChallengeError
impl Unpin for ChallengeError
impl UnsafeUnpin for ChallengeError
impl UnwindSafe for ChallengeError
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