Enum jsonwebtoken::jwk::KeyAlgorithm
source · pub enum KeyAlgorithm {
Show 15 variants
HS256,
HS384,
HS512,
ES256,
ES384,
RS256,
RS384,
RS512,
PS256,
PS384,
PS512,
EdDSA,
RSA1_5,
RSA_OAEP,
RSA_OAEP_256,
}
Expand description
The algorithms of the keys
Variants§
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
EdDSA
Edwards-curve Digital Signature Algorithm (EdDSA)
RSA1_5
RSAES-PKCS1-V1_5
RSA_OAEP
RSAES-OAEP using SHA-1
RSA_OAEP_256
RSAES-OAEP-256 using SHA-2
Trait Implementations§
source§impl Clone for KeyAlgorithm
impl Clone for KeyAlgorithm
source§fn clone(&self) -> KeyAlgorithm
fn clone(&self) -> KeyAlgorithm
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 KeyAlgorithm
impl Debug for KeyAlgorithm
source§impl<'de> Deserialize<'de> for KeyAlgorithm
impl<'de> Deserialize<'de> for KeyAlgorithm
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 KeyAlgorithm
impl Display for KeyAlgorithm
source§impl FromStr for KeyAlgorithm
impl FromStr for KeyAlgorithm
source§impl Hash for KeyAlgorithm
impl Hash for KeyAlgorithm
source§impl PartialEq for KeyAlgorithm
impl PartialEq for KeyAlgorithm
source§impl Serialize for KeyAlgorithm
impl Serialize for KeyAlgorithm
impl Copy for KeyAlgorithm
impl Eq for KeyAlgorithm
impl StructuralPartialEq for KeyAlgorithm
Auto Trait Implementations§
impl Freeze for KeyAlgorithm
impl RefUnwindSafe for KeyAlgorithm
impl Send for KeyAlgorithm
impl Sync for KeyAlgorithm
impl Unpin for KeyAlgorithm
impl UnwindSafe for KeyAlgorithm
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)