[][src]Struct picky::jose::jws::JwsHeader

pub struct JwsHeader {
    pub alg: JwsAlg,
    pub jku: Option<String>,
    pub jwk: Option<Jwk>,
    pub typ: Option<String>,
    pub cty: Option<String>,
    pub kid: Option<String>,
    pub x5u: Option<String>,
    pub x5c: Option<Vec<String>>,
    pub x5t: Option<String>,
    pub x5t_s256: Option<String>,
}

JOSE header of a JWS

Fields

alg: JwsAlg

Algorithm Header

identifies the cryptographic algorithm used to secure the JWS.

jku: Option<String>

JWK Set URL

URI that refers to a resource for a set of JSON-encoded public keys, one of which corresponds to the key used to digitally sign the JWS.

jwk: Option<Jwk>

JSON Web Key

The public key that corresponds to the key used to digitally sign the JWS. This key is represented as a JSON Web Key (JWK).

typ: Option<String>

Type header

Used by JWS applications to declare the media type [IANA.MediaTypes] of this complete JWS.

cty: Option<String>

Content Type header

Used by JWS applications to declare the media type [IANA.MediaTypes] of the secured content (the payload).

kid: Option<String>

Key ID Header

A hint indicating which key was used.

x5u: Option<String>

X.509 URL Header

URI that refers to a resource for an X.509 public key certificate or certificate chain.

x5c: Option<Vec<String>>

X.509 Certificate Chain

Chain of one or more PKIX certificates.

x5t: Option<String>

X.509 Certificate SHA-1 Thumbprint

base64url-encoded SHA-1 thumbprint (a.k.a. digest) of the DER encoding of an X.509 certificate.

x5t_s256: Option<String>

X.509 Certificate SHA-256 Thumbprint

base64url-encoded SHA-256 thumbprint (a.k.a. digest) of the DER encoding of an X.509 certificate.

Implementations

impl JwsHeader[src]

pub fn new(alg: JwsAlg) -> Self[src]

Trait Implementations

impl Clone for JwsHeader[src]

impl Debug for JwsHeader[src]

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

impl Eq for JwsHeader[src]

impl Hash for JwsHeader[src]

impl PartialEq<JwsHeader> for JwsHeader[src]

impl Serialize for JwsHeader[src]

impl StructuralEq for JwsHeader[src]

impl StructuralPartialEq for JwsHeader[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,