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

HMAC with SHA-256

HMAC with SHA-384

HMAC with SHA-512

RSA Signature with SHA-256

RSA Signature with SHA-384

RSA Signature with SHA-512

ECDSA with SHA-256

ECDSA with SHA-256

ECDSA with SHA-256

Trait Implementations

impl Debug for Algorithm
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Algorithm
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Algorithm
[src]

impl PartialEq for Algorithm
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for Algorithm
[src]

impl Into<MessageDigest> for Algorithm
[src]

[src]

Performs the conversion.

impl ToString for Algorithm
[src]

[src]

Converts the given value to a String. Read more

impl FromStr for Algorithm
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

impl Send for Algorithm

impl Sync for Algorithm