pub enum Algorithm {
HS256,
HS384,
HS512,
RS256,
RS384,
RS512,
ES256,
ES384,
ES512,
}
Expand description
Different algorithms use to sign a jwt
Variants§
HS256
HMAC with SHA-256
HS384
HMAC with SHA-384
HS512
HMAC with SHA-512
RS256
RSA Signature with SHA-256
RS384
RSA Signature with SHA-384
RS512
RSA Signature with SHA-512
ES256
ECDSA with SHA-256
ES384
ECDSA with SHA-256
ES512
ECDSA with SHA-256
Trait Implementations§
Source§impl Into<MessageDigest> for Algorithm
impl Into<MessageDigest> for Algorithm
Source§fn into(self) -> MessageDigest
fn into(self) -> MessageDigest
Converts this type into the (usually inferred) input type.
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 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