[][src]Struct openidconnect::UserInfoJsonWebToken

pub struct UserInfoJsonWebToken<AC: AdditionalClaims, GC: GenderClaim, JE: JweContentEncryptionAlgorithm<JT>, JS: JwsSigningAlgorithm<JT>, JT: JsonWebKeyType>(_);

JSON Web Token (JWT) containing user info claims.

Methods

impl<AC, GC, JE, JS, JT> UserInfoJsonWebToken<AC, GC, JE, JS, JT> where
    AC: AdditionalClaims,
    GC: GenderClaim,
    JE: JweContentEncryptionAlgorithm<JT>,
    JS: JwsSigningAlgorithm<JT>,
    JT: JsonWebKeyType
[src]

pub fn new<JU, K, S>(
    claims: UserInfoClaims<AC, GC>,
    signing_key: &S,
    alg: JS
) -> Result<Self, JsonWebTokenError> where
    JU: JsonWebKeyUse,
    K: JsonWebKey<JS, JT, JU>,
    S: PrivateSigningKey<JS, JT, JU, K>, 
[src]

Initializes a new signed JWT containing the specified claims, signed with the specified key and signing algorithm.

pub fn claims<JU, K>(
    self,
    verifier: &UserInfoVerifier<JE, JS, JT, JU, K>
) -> Result<UserInfoClaims<AC, GC>, ClaimsVerificationError> where
    JU: JsonWebKeyUse,
    K: JsonWebKey<JS, JT, JU>, 
[src]

Verifies and returns the user info claims.

Trait Implementations

impl<AC: Clone + AdditionalClaims, GC: Clone + GenderClaim, JE: Clone + JweContentEncryptionAlgorithm<JT>, JS: Clone + JwsSigningAlgorithm<JT>, JT: Clone + JsonWebKeyType> Clone for UserInfoJsonWebToken<AC, GC, JE, JS, JT>[src]

impl<AC: Debug + AdditionalClaims, GC: Debug + GenderClaim, JE: Debug + JweContentEncryptionAlgorithm<JT>, JS: Debug + JwsSigningAlgorithm<JT>, JT: Debug + JsonWebKeyType> Debug for UserInfoJsonWebToken<AC, GC, JE, JS, JT>[src]

impl<AC: AdditionalClaims, GC: GenderClaim, JE: JweContentEncryptionAlgorithm<JT>, JS: JwsSigningAlgorithm<JT>, JT: JsonWebKeyType> Serialize for UserInfoJsonWebToken<AC, GC, JE, JS, JT> where
    AC: AdditionalClaims
[src]

impl<'de, AC: AdditionalClaims, GC: GenderClaim, JE: JweContentEncryptionAlgorithm<JT>, JS: JwsSigningAlgorithm<JT>, JT: JsonWebKeyType> Deserialize<'de> for UserInfoJsonWebToken<AC, GC, JE, JS, JT> where
    AC: AdditionalClaims
[src]

Auto Trait Implementations

impl<AC, GC, JE, JS, JT> Unpin for UserInfoJsonWebToken<AC, GC, JE, JS, JT> where
    AC: Unpin,
    GC: Unpin,
    JE: Unpin,
    JS: Unpin,
    JT: Unpin

impl<AC, GC, JE, JS, JT> Sync for UserInfoJsonWebToken<AC, GC, JE, JS, JT> where
    AC: Sync,
    GC: Sync,
    JE: Sync,
    JS: Sync,
    JT: Sync

impl<AC, GC, JE, JS, JT> Send for UserInfoJsonWebToken<AC, GC, JE, JS, JT> where
    AC: Send,
    GC: Send,
    JE: Send,
    JS: Send,
    JT: Send

impl<AC, GC, JE, JS, JT> UnwindSafe for UserInfoJsonWebToken<AC, GC, JE, JS, JT> where
    AC: UnwindSafe,
    GC: UnwindSafe,
    JE: UnwindSafe,
    JS: UnwindSafe,
    JT: UnwindSafe

impl<AC, GC, JE, JS, JT> RefUnwindSafe for UserInfoJsonWebToken<AC, GC, JE, JS, JT> where
    AC: RefUnwindSafe,
    GC: RefUnwindSafe,
    JE: RefUnwindSafe,
    JS: RefUnwindSafe,
    JT: RefUnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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>, 

type Err = <U as TryFrom<T>>::Err