pub struct StateEncryptionSettings {
pub enabled: bool,
pub algorithm: String,
pub key_rotation_enabled: bool,
pub nonce_size: u32,
pub key_size: u32,
}Expand description
OAuth state encryption settings loaded from the compiled schema.
Fields§
§enabled: boolWhether OAuth PKCE state tokens are encrypted before being sent to the provider.
algorithm: StringAEAD algorithm to use (e.g., "chacha20-poly1305", "aes-256-gcm").
key_rotation_enabled: boolWhen true, keys are rotated automatically.
nonce_size: u32Nonce size in bytes (must be 12 for both ChaCha20-Poly1305 and AES-256-GCM).
key_size: u32Encryption key size in bytes (must be 32 for both supported algorithms).
Trait Implementations§
Source§impl Clone for StateEncryptionSettings
impl Clone for StateEncryptionSettings
Source§fn clone(&self) -> StateEncryptionSettings
fn clone(&self) -> StateEncryptionSettings
Returns a duplicate 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 Freeze for StateEncryptionSettings
impl RefUnwindSafe for StateEncryptionSettings
impl Send for StateEncryptionSettings
impl Sync for StateEncryptionSettings
impl Unpin for StateEncryptionSettings
impl UnsafeUnpin for StateEncryptionSettings
impl UnwindSafe for StateEncryptionSettings
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