Struct openidconnect::UserInfoVerifier
source · 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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
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