#[non_exhaustive]pub enum JsonWebEncryptionAlg {
Show 20 variants
Rsa15,
RsaOaep,
RsaOaep256,
A128Kw,
A192Kw,
A256Kw,
Dir,
EcdhEs,
EcdhEsA128Kw,
EcdhEsA192Kw,
EcdhEsA256Kw,
A128Gcmkw,
A192Gcmkw,
A256Gcmkw,
Pbes2Hs256A128Kw,
Pbes2Hs384A192Kw,
Pbes2Hs512A256Kw,
RsaOaep384,
RsaOaep512,
Unknown(String),
}
experimental-oidc
only.Expand description
JSON Web Encryption “alg” parameter
Source: http://www.iana.org/assignments/jose/web-signature-encryption-algorithms.csv
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Rsa15
RSAES-PKCS1-v1_5
RsaOaep
RSAES OAEP using default parameters
RsaOaep256
RSAES OAEP using SHA-256 and MGF1 with SHA-256
A128Kw
AES Key Wrap using 128-bit key
A192Kw
AES Key Wrap using 192-bit key
A256Kw
AES Key Wrap using 256-bit key
Dir
Direct use of a shared symmetric key
EcdhEs
ECDH-ES using Concat KDF
EcdhEsA128Kw
ECDH-ES using Concat KDF and “A128KW” wrapping
EcdhEsA192Kw
ECDH-ES using Concat KDF and “A192KW” wrapping
EcdhEsA256Kw
ECDH-ES using Concat KDF and “A256KW” wrapping
A128Gcmkw
Key wrapping with AES GCM using 128-bit key
A192Gcmkw
Key wrapping with AES GCM using 192-bit key
A256Gcmkw
Key wrapping with AES GCM using 256-bit key
Pbes2Hs256A128Kw
PBES2 with HMAC SHA-256 and “A128KW” wrapping
Pbes2Hs384A192Kw
PBES2 with HMAC SHA-384 and “A192KW” wrapping
Pbes2Hs512A256Kw
PBES2 with HMAC SHA-512 and “A256KW” wrapping
RsaOaep384
RSA-OAEP using SHA-384 and MGF1 with SHA-384
RsaOaep512
RSA-OAEP using SHA-512 and MGF1 with SHA-512
Unknown(String)
An unknown value.
Trait Implementations§
Source§impl Clone for JsonWebEncryptionAlg
impl Clone for JsonWebEncryptionAlg
Source§fn clone(&self) -> JsonWebEncryptionAlg
fn clone(&self) -> JsonWebEncryptionAlg
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for JsonWebEncryptionAlg
impl Debug for JsonWebEncryptionAlg
Source§impl<'de> Deserialize<'de> for JsonWebEncryptionAlg
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for JsonWebEncryptionAlg
serde
only.Source§fn deserialize<D>(
deserializer: D,
) -> Result<JsonWebEncryptionAlg, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<JsonWebEncryptionAlg, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl Display for JsonWebEncryptionAlg
impl Display for JsonWebEncryptionAlg
Source§impl FromStr for JsonWebEncryptionAlg
impl FromStr for JsonWebEncryptionAlg
Source§type Err = Infallible
type Err = Infallible
Source§fn from_str(
s: &str,
) -> Result<JsonWebEncryptionAlg, <JsonWebEncryptionAlg as FromStr>::Err>
fn from_str( s: &str, ) -> Result<JsonWebEncryptionAlg, <JsonWebEncryptionAlg as FromStr>::Err>
s
to return a value of this type. Read moreSource§impl Hash for JsonWebEncryptionAlg
impl Hash for JsonWebEncryptionAlg
Source§impl JsonSchema for JsonWebEncryptionAlg
Available on crate feature schemars
only.
impl JsonSchema for JsonWebEncryptionAlg
schemars
only.Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn json_schema(_gen: &mut SchemaGenerator) -> Schema
fn json_schema(_gen: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreSource§impl Ord for JsonWebEncryptionAlg
impl Ord for JsonWebEncryptionAlg
Source§fn cmp(&self, other: &JsonWebEncryptionAlg) -> Ordering
fn cmp(&self, other: &JsonWebEncryptionAlg) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for JsonWebEncryptionAlg
impl PartialEq for JsonWebEncryptionAlg
Source§impl PartialOrd for JsonWebEncryptionAlg
impl PartialOrd for JsonWebEncryptionAlg
Source§impl Serialize for JsonWebEncryptionAlg
Available on crate feature serde
only.
impl Serialize for JsonWebEncryptionAlg
serde
only.Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
impl Eq for JsonWebEncryptionAlg
impl StructuralPartialEq for JsonWebEncryptionAlg
Auto Trait Implementations§
impl Freeze for JsonWebEncryptionAlg
impl RefUnwindSafe for JsonWebEncryptionAlg
impl Send for JsonWebEncryptionAlg
impl Sync for JsonWebEncryptionAlg
impl Unpin for JsonWebEncryptionAlg
impl UnwindSafe for JsonWebEncryptionAlg
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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