pub struct Jwk { /* fields omitted */ }
Expand description
Generate a new oct type JWK.
key_len
- A key byte length
Generate a new RSA type JWK.
Generate a new EC type JWK.
curve
- A EC curve algorithm
Generate a new Ed type JWK.
curve
- A Ed curve algorithm
Generate a new Ecx type JWK.
curve
- A Ecx curve algorithm
Generate private key from private key.
Set a value for a key type parameter (kty).
Return a value for a key type parameter (kty).
Set a value for a key use parameter (use).
Return a value for a key use parameter (use).
Set values for a key operations parameter (key_ops).
Return values for a key operations parameter (key_ops).
Set a value for a algorithm parameter (alg).
Return a value for a algorithm parameter (alg).
Set a value for a key ID parameter (kid).
Return a value for a key ID parameter (kid).
Set a value for a x509 url parameter (x5u).
Return a value for a x509 url parameter (x5u).
Set a value for a x509 certificate SHA-1 thumbprint parameter (x5t).
value
- A x509 certificate SHA-1 thumbprint
Return a value for a x509 certificate SHA-1 thumbprint parameter (x5t).
Set a value for a x509 certificate SHA-256 thumbprint parameter (x5t#S256).
value
- A x509 certificate SHA-256 thumbprint
Return a value for a x509 certificate SHA-256 thumbprint parameter (x5t#S256).
Set values for a X.509 certificate chain parameter (x5c).
values
- X.509 certificate chain
Return values for a X.509 certificate chain parameter (x5c).
Set a value for a curve parameter (crv).
Return a value for a curve parameter (crv).
Set a value for a key value parameter (k) of a oct type.
Return a value for a key value parameter (k) of a oct type.
Set a value for a parameter of a specified key.
key
- A key name of a parameter
value
- A typed value of a parameter
Return a value for a parameter of a specified key.
key
- A key name of a parameter
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
impl<T, U> Into<U> for T where
U: From<T>,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String
. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.