#[non_exhaustive]pub enum Algorithm {
Rs256,
Rs384,
Rs512,
Ps256,
Ps384,
Ps512,
Es256,
Es384,
EdDsa,
}Expand description
A JWS signature algorithm accepted by JwtVerifier.
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.
Rs256
RSASSA-PKCS1-v1_5 with SHA-256 (RS256).
Rs384
RSASSA-PKCS1-v1_5 with SHA-384 (RS384).
Rs512
RSASSA-PKCS1-v1_5 with SHA-512 (RS512).
Ps256
RSASSA-PSS with SHA-256 (PS256).
Ps384
RSASSA-PSS with SHA-384 (PS384).
Ps512
RSASSA-PSS with SHA-512 (PS512).
Es256
ECDSA on P-256 with SHA-256 (ES256).
Es384
ECDSA on P-384 with SHA-384 (ES384).
EdDsa
Ed25519 (EdDSA or Ed25519).
Implementations§
Trait Implementations§
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnsafeUnpin for Algorithm
impl UnwindSafe for Algorithm
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