pub enum ChallengeMethod {
S256,
Plain,
}Expand description
How the challenge was derived from the verifier.
Variants§
S256
SHA-256. The only method that offers any protection.
Plain
The challenge is the verifier. RFC 7636 §4.2 permits it only where SHA-256 is genuinely unavailable; it gives an interceptor the verifier along with the code, so it protects against nothing.
Implementations§
Trait Implementations§
Source§impl Clone for ChallengeMethod
impl Clone for ChallengeMethod
impl Copy for ChallengeMethod
Source§impl Debug for ChallengeMethod
impl Debug for ChallengeMethod
Source§impl Default for ChallengeMethod
impl Default for ChallengeMethod
Source§impl Display for ChallengeMethod
impl Display for ChallengeMethod
impl Eq for ChallengeMethod
Source§impl PartialEq for ChallengeMethod
impl PartialEq for ChallengeMethod
impl StructuralPartialEq for ChallengeMethod
Auto Trait Implementations§
impl Freeze for ChallengeMethod
impl RefUnwindSafe for ChallengeMethod
impl Send for ChallengeMethod
impl Sync for ChallengeMethod
impl Unpin for ChallengeMethod
impl UnsafeUnpin for ChallengeMethod
impl UnwindSafe for ChallengeMethod
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