Struct picky::jose::jws::JwsHeader [−][src]
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>, }
Expand description
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
Trait Implementations
impl<'de> Deserialize<'de> for JwsHeader
[src]
impl<'de> Deserialize<'de> for JwsHeader
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Eq for JwsHeader
[src]
impl StructuralEq for JwsHeader
[src]
impl StructuralPartialEq for JwsHeader
[src]
Auto Trait Implementations
impl RefUnwindSafe for JwsHeader
impl Send for JwsHeader
impl Sync for JwsHeader
impl Unpin for JwsHeader
impl UnwindSafe for JwsHeader
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,