#[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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 &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 &'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 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 for AlgorithmID
impl PartialEq for AlgorithmID
Source§impl Serialize for AlgorithmID
impl Serialize for AlgorithmID
impl Copy for AlgorithmID
impl Eq for AlgorithmID
impl StructuralPartialEq for AlgorithmID
Auto Trait Implementations§
impl Freeze for AlgorithmID
impl RefUnwindSafe for AlgorithmID
impl Send for AlgorithmID
impl Sync for AlgorithmID
impl Unpin for AlgorithmID
impl UnwindSafe for AlgorithmID
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