[−][src]Struct openidconnect::Nonce
String value used to associate a client session with an ID Token, and to mitigate replay attacks.
Methods
impl Nonce
[src]
pub fn new_random() -> Self
[src]
Generate a new random, base64-encoded 128-bit nonce.
pub fn new_random_len(num_bytes: u32) -> Self
[src]
Generate a new random, base64-encoded nonce of the specified length.
Arguments
num_bytes
- Number of random bytes to generate, prior to base64-encoding.
pub fn new(s: String) -> Self
[src]
Create a new Nonce
to wrap the given String
.
pub fn secret(&self) -> &String
[src]
Get the secret contained within this Nonce
.
Security Warning
Leaking this value may compromise the security of the OAuth2 flow.
Trait Implementations
impl<'a, '_> NonceVerifier<'a> for &'_ Nonce
[src]
impl Clone for Nonce
[src]
impl PartialEq<Nonce> for Nonce
[src]
impl Debug for Nonce
[src]
impl Serialize for Nonce
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Nonce
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Unpin for Nonce
impl Sync for Nonce
impl Send for Nonce
impl UnwindSafe for Nonce
impl RefUnwindSafe for Nonce
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,