Struct josekit::jws::JwsContext [−][src]
pub struct JwsContext { /* 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
Return a representation of the data that is formatted by compact serialization.
Arguments
payload
- The payload data.header
- The JWS heaser claims.signer
- The JWS signer.
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
protected
- The JWS protected header claims.header
- The JWS unprotected header claims.payload
- The payload data.signers
- The JWS signer.
Return a representation of the data that is formatted by flattened json serialization.
Arguments
payload
- The payload data.headers
- The JWS headers.selector
- a function for selecting the signing algorithm.
pub fn serialize_flattened_json(
&self,
payload: &[u8],
header: &JwsHeaderSet,
signer: &dyn JwsSigner
) -> Result<String, JoseError>
pub fn serialize_flattened_json(
&self,
payload: &[u8],
header: &JwsHeaderSet,
signer: &dyn JwsSigner
) -> Result<String, JoseError>
Return a representation of the data that is formatted by flattened json serialization.
Arguments
payload
- The payload data.header
- The JWS protected and unprotected header claims.signer
- The JWS signer.
Return a representation of the data that is formatted by flatted json serialization.
Arguments
payload
- The payload data.header
- The JWS protected and unprotected header claims.selector
- a function for selecting the signing algorithm.
Deserialize the input that is formatted by compact serialization.
Arguments
input
- The input data.header
- The decoded JWS header claims.verifier
- The JWS verifier.
Deserialize the input that is formatted by compact serialization.
Arguments
input
- The input data.header
- The decoded JWS header claims.selector
- a function for selecting the verifying algorithm.
Deserialize the input that is formatted by json serialization.
Arguments
input
- The input data.header
- The decoded JWS header claims.verifier
- The JWS verifier.
Deserialize the input that is formatted by json serialization.
Arguments
input
- The input data.header
- The decoded JWS header claims.selector
- a function for selecting the verifying 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 JwsContext
impl Send for JwsContext
impl Sync for JwsContext
impl Unpin for JwsContext
impl UnwindSafe for JwsContext
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.