[][src]Struct openidconnect::UserInfoVerifier

pub struct UserInfoVerifier<'a, JE, JS, JT, JU, K> where
    JE: JweContentEncryptionAlgorithm<JT>,
    JS: JwsSigningAlgorithm<JT>,
    JT: JsonWebKeyType,
    JU: JsonWebKeyUse,
    K: JsonWebKey<JS, JT, JU>, 
{ /* fields omitted */ }

User info verifier.

Methods

impl<'a, JE, JS, JT, JU, K> UserInfoVerifier<'a, JE, JS, JT, JU, K> where
    JE: JweContentEncryptionAlgorithm<JT>,
    JS: JwsSigningAlgorithm<JT>,
    JT: JsonWebKeyType,
    JU: JsonWebKeyUse,
    K: JsonWebKey<JS, JT, JU>, 
[src]

pub fn new(
    client_id: ClientId,
    issuer: IssuerUrl,
    signature_keys: JsonWebKeySet<JS, JT, JU, K>,
    expected_subject: Option<SubjectIdentifier>
) -> Self
[src]

Instantiates a user info verifier.

pub fn require_issuer_match(self, iss_required: bool) -> Self[src]

Specifies whether the issuer claim must match the expected issuer URL for the provider.

pub fn require_audience_match(self, aud_required: bool) -> Self[src]

Specifies whether the audience claim must match this client's client ID.

Trait Implementations

impl<'a, JE: Clone, JS: Clone, JT: Clone, JU: Clone, K: Clone> Clone for UserInfoVerifier<'a, JE, JS, JT, JU, K> where
    JE: JweContentEncryptionAlgorithm<JT>,
    JS: JwsSigningAlgorithm<JT>,
    JT: JsonWebKeyType,
    JU: JsonWebKeyUse,
    K: JsonWebKey<JS, JT, JU>, 
[src]

Auto Trait Implementations

impl<'a, JE, JS, JT, JU, K> Unpin for UserInfoVerifier<'a, JE, JS, JT, JU, K> where
    JE: Unpin,
    JS: Unpin,
    JT: Unpin,
    JU: Unpin,
    K: Unpin

impl<'a, JE, JS, JT, JU, K> !Sync for UserInfoVerifier<'a, JE, JS, JT, JU, K>

impl<'a, JE, JS, JT, JU, K> !Send for UserInfoVerifier<'a, JE, JS, JT, JU, K>

impl<'a, JE, JS, JT, JU, K> !UnwindSafe for UserInfoVerifier<'a, JE, JS, JT, JU, K>

impl<'a, JE, JS, JT, JU, K> !RefUnwindSafe for UserInfoVerifier<'a, JE, JS, JT, JU, K>

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