#[non_exhaustive]pub struct JwtConfigurationBuilder { /* private fields */ }
Expand description
A builder for JwtConfiguration
.
Implementations§
source§impl JwtConfigurationBuilder
impl JwtConfigurationBuilder
sourcepub fn audience(self, input: impl Into<String>) -> Self
pub fn audience(self, input: impl Into<String>) -> Self
Appends an item to audience
.
To override the contents of this collection use set_audience
.
A list of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list. See RFC 7519. Supported only for HTTP APIs.
sourcepub fn set_audience(self, input: Option<Vec<String>>) -> Self
pub fn set_audience(self, input: Option<Vec<String>>) -> Self
A list of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list. See RFC 7519. Supported only for HTTP APIs.
sourcepub fn get_audience(&self) -> &Option<Vec<String>>
pub fn get_audience(&self) -> &Option<Vec<String>>
A list of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list. See RFC 7519. Supported only for HTTP APIs.
sourcepub fn issuer(self, input: impl Into<String>) -> Self
pub fn issuer(self, input: impl Into<String>) -> Self
The base domain of the identity provider that issues JSON Web Tokens. For example, an Amazon Cognito user pool has the following format: https://cognito-idp.
sourcepub fn set_issuer(self, input: Option<String>) -> Self
pub fn set_issuer(self, input: Option<String>) -> Self
The base domain of the identity provider that issues JSON Web Tokens. For example, an Amazon Cognito user pool has the following format: https://cognito-idp.
sourcepub fn get_issuer(&self) -> &Option<String>
pub fn get_issuer(&self) -> &Option<String>
The base domain of the identity provider that issues JSON Web Tokens. For example, an Amazon Cognito user pool has the following format: https://cognito-idp.
sourcepub fn build(self) -> JwtConfiguration
pub fn build(self) -> JwtConfiguration
Consumes the builder and constructs a JwtConfiguration
.
Trait Implementations§
source§impl Clone for JwtConfigurationBuilder
impl Clone for JwtConfigurationBuilder
source§fn clone(&self) -> JwtConfigurationBuilder
fn clone(&self) -> JwtConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for JwtConfigurationBuilder
impl Debug for JwtConfigurationBuilder
source§impl Default for JwtConfigurationBuilder
impl Default for JwtConfigurationBuilder
source§fn default() -> JwtConfigurationBuilder
fn default() -> JwtConfigurationBuilder
source§impl PartialEq<JwtConfigurationBuilder> for JwtConfigurationBuilder
impl PartialEq<JwtConfigurationBuilder> for JwtConfigurationBuilder
source§fn eq(&self, other: &JwtConfigurationBuilder) -> bool
fn eq(&self, other: &JwtConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.