pub enum CookieContentSecurity {
Private,
Signed,
}
Expand description
Determines how to secure the content of the session cookie.
Variants§
Private
The cookie content is encrypted when using CookieContentSecurity::Private
.
Encryption guarantees confidentiality and integrity: the client cannot tamper with the cookie content nor decode it, as long as the encryption key remains confidential.
Signed
The cookie content is signed when using CookieContentSecurity::Signed
.
Signing guarantees integrity, but it doesn’t ensure confidentiality: the client cannot tamper with the cookie content, but they can read it.
Trait Implementations§
source§impl Clone for CookieContentSecurity
impl Clone for CookieContentSecurity
source§fn clone(&self) -> CookieContentSecurity
fn clone(&self) -> CookieContentSecurity
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 more