pub struct AdvancedJarmManager { /* private fields */ }
Expand description
Advanced JARM manager
Implementations§
Source§impl AdvancedJarmManager
impl AdvancedJarmManager
Sourcepub fn new(config: AdvancedJarmConfig) -> Self
pub fn new(config: AdvancedJarmConfig) -> Self
Create new Advanced JARM manager
Sourcepub async fn create_jarm_response(
&self,
client_id: &str,
authorization_response: &AuthorizationResponse,
delivery_mode: JarmDeliveryMode,
custom_claims: Option<HashMap<String, Value>>,
) -> Result<JarmResponse>
pub async fn create_jarm_response( &self, client_id: &str, authorization_response: &AuthorizationResponse, delivery_mode: JarmDeliveryMode, custom_claims: Option<HashMap<String, Value>>, ) -> Result<JarmResponse>
Create JARM response token
Sourcepub async fn validate_jarm_response(
&self,
token: &str,
) -> Result<JarmValidationResult>
pub async fn validate_jarm_response( &self, token: &str, ) -> Result<JarmValidationResult>
Validate JARM response token
Sourcepub async fn validate_jarm_response_with_transport(
&self,
token: &str,
transport_secure: bool,
) -> Result<JarmValidationResult>
pub async fn validate_jarm_response_with_transport( &self, token: &str, transport_secure: bool, ) -> Result<JarmValidationResult>
Validate JARM response token with transport security context
Sourcepub async fn deliver_jarm_response(
&self,
jarm_response: &JarmResponse,
client_redirect_uri: &str,
push_endpoint: Option<&str>,
) -> Result<DeliveryResult>
pub async fn deliver_jarm_response( &self, jarm_response: &JarmResponse, client_redirect_uri: &str, push_endpoint: Option<&str>, ) -> Result<DeliveryResult>
Deliver JARM response based on delivery mode
Sourcepub fn config(&self) -> &AdvancedJarmConfig
pub fn config(&self) -> &AdvancedJarmConfig
Get configuration
Sourcepub fn revoke_jarm_token(&self, jti: &str) -> Result<()>
pub fn revoke_jarm_token(&self, jti: &str) -> Result<()>
Revoke a JARM token by JWT ID
Sourcepub fn is_jarm_token_revoked(&self, jti: &str) -> Result<bool>
pub fn is_jarm_token_revoked(&self, jti: &str) -> Result<bool>
Check if a JARM token is revoked
Sourcepub fn get_jwt_validator(&self) -> &Arc<SecureJwtValidator>
pub fn get_jwt_validator(&self) -> &Arc<SecureJwtValidator>
Get JWT validator for advanced token operations
Auto Trait Implementations§
impl Freeze for AdvancedJarmManager
impl !RefUnwindSafe for AdvancedJarmManager
impl Send for AdvancedJarmManager
impl Sync for AdvancedJarmManager
impl Unpin for AdvancedJarmManager
impl !UnwindSafe for AdvancedJarmManager
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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