#[non_exhaustive]pub enum CoreJweContentEncryptionAlgorithm {
Aes128CbcHmacSha256,
Aes192CbcHmacSha384,
Aes256CbcHmacSha512,
Aes128Gcm,
Aes192Gcm,
Aes256Gcm,
}
Expand description
OpenID Connect Core JWE encryption algorithms.
These algorithms represent the enc
header parameter values for JSON Web Encryption.
The values are described in
Section 5.1 of RFC 7518.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Aes128CbcHmacSha256
AES-128 CBC HMAC SHA-256 authenticated encryption.
Aes192CbcHmacSha384
AES-192 CBC HMAC SHA-384 authenticated encryption.
Aes256CbcHmacSha512
AES-256 CBC HMAC SHA-512 authenticated encryption.
Aes128Gcm
AES-128 GCM.
Aes192Gcm
AES-192 GCM.
Aes256Gcm
AES-256 GCM.
Trait Implementations§
Source§impl Clone for CoreJweContentEncryptionAlgorithm
impl Clone for CoreJweContentEncryptionAlgorithm
Source§fn clone(&self) -> CoreJweContentEncryptionAlgorithm
fn clone(&self) -> CoreJweContentEncryptionAlgorithm
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 moreSource§impl<'de> Deserialize<'de> for CoreJweContentEncryptionAlgorithm
impl<'de> Deserialize<'de> for CoreJweContentEncryptionAlgorithm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JweContentEncryptionAlgorithm for CoreJweContentEncryptionAlgorithm
impl JweContentEncryptionAlgorithm for CoreJweContentEncryptionAlgorithm
Source§type KeyType = CoreJsonWebKeyType
type KeyType = CoreJsonWebKeyType
Key type (e.g., RSA).
Source§impl PartialEq for CoreJweContentEncryptionAlgorithm
impl PartialEq for CoreJweContentEncryptionAlgorithm
Source§fn eq(&self, other: &CoreJweContentEncryptionAlgorithm) -> bool
fn eq(&self, other: &CoreJweContentEncryptionAlgorithm) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for CoreJweContentEncryptionAlgorithm
impl StructuralPartialEq for CoreJweContentEncryptionAlgorithm
Auto Trait Implementations§
impl Freeze for CoreJweContentEncryptionAlgorithm
impl RefUnwindSafe for CoreJweContentEncryptionAlgorithm
impl Send for CoreJweContentEncryptionAlgorithm
impl Sync for CoreJweContentEncryptionAlgorithm
impl Unpin for CoreJweContentEncryptionAlgorithm
impl UnwindSafe for CoreJweContentEncryptionAlgorithm
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