[][src]Enum openidconnect::core::CoreJwsSigningAlgorithm

pub enum CoreJwsSigningAlgorithm {
    HmacSha256,
    HmacSha384,
    HmacSha512,
    RsaSsaPkcs1V15Sha256,
    RsaSsaPkcs1V15Sha384,
    RsaSsaPkcs1V15Sha512,
    EcdsaP256Sha256,
    EcdsaP384Sha384,
    EcdsaP521Sha512,
    RsaSsaPssSha256,
    RsaSsaPssSha384,
    RsaSsaPssSha512,
    None,
}

OpenID Connect Core JWS signing algorithms.

These algorithms represent the alg header parameter values for JSON Web Signature. They are used to digitally sign or create a MAC of the contents of the JWS Protected Header and the JWS Payload. The values are described in Section 3.1 of RFC 7518.

Variants

HmacSha256

HMAC using SHA-256 (currently unsupported).

HmacSha384

HMAC using SHA-384 (currently unsupported).

HmacSha512

HMAC using SHA-512 (currently unsupported).

RsaSsaPkcs1V15Sha256

RSA SSA PKCS#1 v1.5 using SHA-256.

RsaSsaPkcs1V15Sha384

RSA SSA PKCS#1 v1.5 using SHA-384.

RsaSsaPkcs1V15Sha512

RSA SSA PKCS#1 v1.5 using SHA-512.

EcdsaP256Sha256

ECDSA using P-256 and SHA-256 (currently unsupported).

EcdsaP384Sha384

ECDSA using P-384 and SHA-384 (currently unsupported).

EcdsaP521Sha512

ECDSA using P-521 and SHA-512 (currently unsupported).

RsaSsaPssSha256

RSA SSA-PSS using SHA-256 and MGF1 with SHA-256.

RsaSsaPssSha384

RSA SSA-PSS using SHA-384 and MGF1 with SHA-384.

RsaSsaPssSha512

RSA SSA-PSS using SHA-512 and MGF1 with SHA-512.

None

No digital signature or MAC performed.

Security Warning

This algorithm provides no security over the integrity of the JSON Web Token. Clients should be careful not to rely on unsigned JWT's for security purposes. See Critical vulnerabilities in JSON Web Token libraries for further discussion.

Trait Implementations

impl JsonWebKey<CoreJwsSigningAlgorithm, CoreJsonWebKeyType, CoreJsonWebKeyUse> for CoreJsonWebKey[src]

impl PrivateSigningKey<CoreJwsSigningAlgorithm, CoreJsonWebKeyType, CoreJsonWebKeyUse, CoreJsonWebKey> for CoreHmacKey[src]

impl PrivateSigningKey<CoreJwsSigningAlgorithm, CoreJsonWebKeyType, CoreJsonWebKeyUse, CoreJsonWebKey> for CoreRsaPrivateSigningKey[src]

impl JwsSigningAlgorithm<CoreJsonWebKeyType> for CoreJwsSigningAlgorithm[src]

impl Eq for CoreJwsSigningAlgorithm[src]

impl Clone for CoreJwsSigningAlgorithm[src]

impl PartialEq<CoreJwsSigningAlgorithm> for CoreJwsSigningAlgorithm[src]

impl Hash for CoreJwsSigningAlgorithm[src]

impl Debug for CoreJwsSigningAlgorithm[src]

impl Serialize for CoreJwsSigningAlgorithm[src]

impl<'de> Deserialize<'de> for CoreJwsSigningAlgorithm[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err