jose 0.0.2

A JSON Object Signing and Encryption implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::{
    header::HeaderValue,
    jwa::{JsonWebContentEncryptionAlgorithm, JsonWebEncryptionAlgorithm},
    sealed::Sealed,
};

/// Parameters specific to Json Web Encryption
#[derive(Debug)]
#[non_exhaustive]
pub struct Jwe {
    /// `alg` parameter
    pub(crate) algorithm: HeaderValue<JsonWebEncryptionAlgorithm>,
    /// `enc` parameter
    pub(crate) content_encryption_algorithm: HeaderValue<JsonWebContentEncryptionAlgorithm>,
    // FIXME: other JWE parameters (zip, epk, ...)
}

impl Sealed for Jwe {}