Struct josekit::jwe::JweContext [−][src]
pub struct JweContext { /* fields omitted */ }
Implementations
Add a acceptable critical header claim name
Arguments
name
- a acceptable critical header claim name
Remove a acceptable critical header claim name
Arguments
name
- a acceptable critical header claim name
Add a compression algorithm for zip header claim name.
Arguments
compression
- a compression algorithm
Get a content encryption algorithm for enc header claim value.
Arguments
name
- a content encryption header claim name
Add a content encryption algorithm for enc header claim name.
Arguments
content_encryption
- a content encryption algorithm
Remove a content encryption algorithm for enc header claim name.
Arguments
name
- a enc header claim name
pub fn serialize_compact(
&self,
payload: &[u8],
header: &JweHeader,
encrypter: &dyn JweEncrypter
) -> Result<String, JoseError>
pub fn serialize_compact(
&self,
payload: &[u8],
header: &JweHeader,
encrypter: &dyn JweEncrypter
) -> Result<String, JoseError>
Return a representation of the data that is formatted by compact serialization.
Arguments
payload
- The payload data.header
- The JWS heaser claims.encrypter
- The JWS encrypter.
Return a representation of the data that is formatted by compact serialization.
Arguments
payload
- The payload data.header
- The JWS heaser claims.selector
- a function for selecting the signing algorithm.
Return a representation of the data that is formatted by flattened json serialization.
Arguments
payload
- The payload data.header
- The JWE shared protected and unprotected header claims.recipients
- The JWE header claims and the JWE encrypter pair for recipients.aad
- The JWE additional authenticated data.
Return a representation of the data that is formatted by flattened json serialization.
Arguments
payload
- The payload data.header
- The JWS shared protected and unprotected header claims.recipient_headers
- The JWE unprotected header claims for recipients.aad
- The JWE additional authenticated data.selector
- a function for selecting the encrypting algorithm.
Return a representation of the data that is formatted by flattened json serialization.
Arguments
payload
- The payload data.header
- The JWE shared protected and unprotected header claims.recipient_header
- The JWE unprotected header claims per recipient.aad
- The JWE additional authenticated data.encrypter
- The JWS encrypter.
Return a representation of the data that is formatted by flatted json serialization.
Arguments
payload
- The payload data.header
- The JWE shared protected and unprotected header claims.recipient_header
- The JWE unprotected header claims per recipient.aad
- The JWE additional authenticated data.selector
- a function for selecting the encrypting algorithm.
Deserialize the input that is formatted by compact serialization.
Arguments
input
- The input data.decrypter
- The JWS decrypter.
Deserialize the input that is formatted by compact serialization.
Arguments
input
- The input data.selector
- a function for selecting the decrypting algorithm.
Deserialize the input that is formatted by flattened json serialization.
Arguments
input
- The input data.decrypter
- The JWE decrypter.
Deserialize the input that is formatted by flattened json serialization.
Arguments
input
- The input data.selector
- a function for selecting the decrypting algorithm.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl !RefUnwindSafe for JweContext
impl Send for JweContext
impl Sync for JweContext
impl Unpin for JweContext
impl !UnwindSafe for JweContext
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.