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>,{ /* private fields */ }
Expand description
User info verifier.
Implementations§
Source§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>,
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>,
Sourcepub fn new(
client_id: ClientId,
issuer: IssuerUrl,
signature_keys: JsonWebKeySet<JS, JT, JU, K>,
expected_subject: Option<SubjectIdentifier>,
) -> Self
pub fn new( client_id: ClientId, issuer: IssuerUrl, signature_keys: JsonWebKeySet<JS, JT, JU, K>, expected_subject: Option<SubjectIdentifier>, ) -> Self
Instantiates a user info verifier.
Sourcepub fn require_issuer_match(self, iss_required: bool) -> Self
pub fn require_issuer_match(self, iss_required: bool) -> Self
Specifies whether the issuer claim must match the expected issuer URL for the provider.
Sourcepub fn require_audience_match(self, aud_required: bool) -> Self
pub fn require_audience_match(self, aud_required: bool) -> Self
Specifies whether the audience claim must match this client’s client ID.
Trait Implementations§
Source§impl<'a, JE, JS, JT, JU, K> Clone for UserInfoVerifier<'a, JE, JS, JT, JU, K>where
JE: JweContentEncryptionAlgorithm<JT> + Clone,
JS: JwsSigningAlgorithm<JT> + Clone,
JT: JsonWebKeyType + Clone,
JU: JsonWebKeyUse + Clone,
K: JsonWebKey<JS, JT, JU> + Clone,
impl<'a, JE, JS, JT, JU, K> Clone for UserInfoVerifier<'a, JE, JS, JT, JU, K>where
JE: JweContentEncryptionAlgorithm<JT> + Clone,
JS: JwsSigningAlgorithm<JT> + Clone,
JT: JsonWebKeyType + Clone,
JU: JsonWebKeyUse + Clone,
K: JsonWebKey<JS, JT, JU> + Clone,
Source§fn clone(&self) -> UserInfoVerifier<'a, JE, JS, JT, JU, K>
fn clone(&self) -> UserInfoVerifier<'a, JE, JS, JT, JU, K>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a, JE, JS, JT, JU, K> Freeze for UserInfoVerifier<'a, JE, JS, JT, JU, K>
impl<'a, JE, JS, JT, JU, K> !RefUnwindSafe 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> Sync for UserInfoVerifier<'a, JE, JS, JT, JU, K>
impl<'a, JE, JS, JT, JU, K> Unpin for UserInfoVerifier<'a, JE, JS, JT, JU, K>
impl<'a, JE, JS, JT, JU, K> !UnwindSafe for UserInfoVerifier<'a, JE, JS, JT, JU, K>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more