Enum matrix_sdk::oidc::types::iana::jose::JsonWebEncryptionAlg
source · #[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
§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§fn eq(&self, other: &JsonWebEncryptionAlg) -> bool
fn eq(&self, other: &JsonWebEncryptionAlg) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for JsonWebEncryptionAlg
impl PartialOrd for JsonWebEncryptionAlg
source§fn partial_cmp(&self, other: &JsonWebEncryptionAlg) -> Option<Ordering>
fn partial_cmp(&self, other: &JsonWebEncryptionAlg) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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