Struct didcomm_rs::JwmHeader [−][src]
pub struct JwmHeader {
pub typ: MessageType,
pub enc: Option<String>,
pub kid: Option<String>,
pub skid: Option<String>,
pub alg: Option<String>,
pub jku: Option<String>,
pub jwk: Option<Jwk>,
pub epk: Option<Jwk>,
pub cty: Option<String>,
// some fields omitted
}
Expand description
JWM Header as specifiead in RFC With single deviation - allows raw text JWM to support DIDComm spec
Designed to work for both JWE and JWS message types.
iv
property is not explicitly listed in the registered properties on the RFC but is present
within example lists - used here as DIDComm crypto nonce sharing property.
Fields
typ: MessageType
enc: Option<String>
kid: Option<String>
skid: Option<String>
alg: Option<String>
jku: Option<String>
jwk: Option<Jwk>
epk: Option<Jwk>
cty: Option<String>
Implementations
Setter of JOSE header properties to identify which signature alg used.
Modifies typ
and alg
headers.
Setter of JOSE header preperties to identify which crypto alg and key type used.
Modifies enc
, typ
and alg
headers.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for JwmHeader
impl UnwindSafe for JwmHeader
Blanket Implementations
Mutably borrows from an owned value. Read more