Enum jsonwebtokens::AlgorithmID
source · #[non_exhaustive]
pub enum AlgorithmID {
NONE,
HS256,
HS384,
HS512,
ES256,
ES384,
RS256,
RS384,
RS512,
PS256,
PS384,
PS512,
}
Expand description
Uniquely identifies a specific cryptographic algorithm for signing or verifying tokens
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.
NONE
Unsecured JWT
HS256
HMAC using SHA-256
HS384
HMAC using SHA-384
HS512
HMAC using SHA-512
ES256
ECDSA using SHA-256
ES384
ECDSA using SHA-384
RS256
RSASSA-PKCS1-v1_5 using SHA-256
RS384
RSASSA-PKCS1-v1_5 using SHA-384
RS512
RSASSA-PKCS1-v1_5 using SHA-512
PS256
RSASSA-PSS using SHA-256
PS384
RSASSA-PSS using SHA-384
PS512
RSASSA-PSS using SHA-512
Trait Implementations§
source§impl Clone for AlgorithmID
impl Clone for AlgorithmID
source§fn clone(&self) -> AlgorithmID
fn clone(&self) -> AlgorithmID
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 moresource§impl Debug for AlgorithmID
impl Debug for AlgorithmID
source§impl<'de> Deserialize<'de> for AlgorithmID
impl<'de> Deserialize<'de> for AlgorithmID
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 Display for AlgorithmID
impl Display for AlgorithmID
source§impl From<AlgorithmID> for &'static str
impl From<AlgorithmID> for &'static str
source§fn from(id: AlgorithmID) -> Self
fn from(id: AlgorithmID) -> Self
Converts to this type from the input type.
source§impl From<AlgorithmID> for &EcdsaSigningAlgorithm
impl From<AlgorithmID> for &EcdsaSigningAlgorithm
source§fn from(alg: AlgorithmID) -> Self
fn from(alg: AlgorithmID) -> Self
Converts to this type from the input type.
source§impl From<AlgorithmID> for &RsaParameters
impl From<AlgorithmID> for &RsaParameters
source§fn from(alg: AlgorithmID) -> Self
fn from(alg: AlgorithmID) -> Self
Converts to this type from the input type.
source§impl From<AlgorithmID> for &dyn RsaEncoding
impl From<AlgorithmID> for &dyn RsaEncoding
source§fn from(alg: AlgorithmID) -> Self
fn from(alg: AlgorithmID) -> Self
Converts to this type from the input type.
source§impl From<AlgorithmID> for &dyn VerificationAlgorithm
impl From<AlgorithmID> for &dyn VerificationAlgorithm
source§fn from(alg: AlgorithmID) -> Self
fn from(alg: AlgorithmID) -> Self
Converts to this type from the input type.
source§impl From<AlgorithmID> for Algorithm
impl From<AlgorithmID> for Algorithm
source§fn from(alg: AlgorithmID) -> Self
fn from(alg: AlgorithmID) -> Self
Converts to this type from the input type.
source§impl FromStr for AlgorithmID
impl FromStr for AlgorithmID
source§impl PartialEq<AlgorithmID> for AlgorithmID
impl PartialEq<AlgorithmID> for AlgorithmID
source§fn eq(&self, other: &AlgorithmID) -> bool
fn eq(&self, other: &AlgorithmID) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.