Enum libjwt::algorithm::Algorithm
[−]
[src]
pub enum Algorithm { HS256, HS384, HS512, RS256, RS384, RS512, ES256, ES384, ES512, }
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
impl Debug for Algorithm
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Algorithm
[src]
fn clone(&self) -> Algorithm
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Algorithm
[src]
impl PartialEq for Algorithm
[src]
fn eq(&self, __arg_0: &Algorithm) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for Algorithm
[src]
impl Into<MessageDigest> for Algorithm
[src]
fn into(self) -> MessageDigest
[src]
Performs the conversion.