pub struct DecryptionOptions {
pub max_token_length: Option<usize>,
pub max_header_length: Option<usize>,
pub required_key_id: Option<String>,
pub claim_options: Option<VerificationOptions>,
}Expand description
Options for JWE decryption.
Fields§
§max_token_length: Option<usize>Maximum token length to accept.
Defaults to DEFAULT_MAX_TOKEN_LENGTH, as signed tokens do; None accepts any size.
max_header_length: Option<usize>Maximum header length to accept
required_key_id: Option<String>Required key ID
claim_options: Option<VerificationOptions>Options for validating claims after decryption
Trait Implementations§
Source§impl Clone for DecryptionOptions
impl Clone for DecryptionOptions
Source§fn clone(&self) -> DecryptionOptions
fn clone(&self) -> DecryptionOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecryptionOptions
impl Debug for DecryptionOptions
Auto Trait Implementations§
impl Freeze for DecryptionOptions
impl RefUnwindSafe for DecryptionOptions
impl Send for DecryptionOptions
impl Sync for DecryptionOptions
impl Unpin for DecryptionOptions
impl UnsafeUnpin for DecryptionOptions
impl UnwindSafe for DecryptionOptions
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