Struct josekit::jwk::Jwk[][src]

pub struct Jwk { /* fields omitted */ }
Expand description

Represents JWK object.

Implementations

Generate a new oct type JWK.

Arguments
  • key_len - A key byte length

Generate a new RSA type JWK.

Arguments
  • bits - A key bits size

Generate a new EC type JWK.

Arguments
  • curve - A EC curve algorithm

Generate a new Ed type JWK.

Arguments
  • curve - A Ed curve algorithm

Generate a new Ecx type JWK.

Arguments
  • curve - A Ecx curve algorithm

Generate private key from private key.

Set a value for a key type parameter (kty).

Arguments
  • value - A key type

Return a value for a key type parameter (kty).

Set a value for a key use parameter (use).

Arguments
  • value - A key use

Return a value for a key use parameter (use).

Set values for a key operations parameter (key_ops).

Arguments
  • values - key operations

Return values for a key operations parameter (key_ops).

Set a value for a algorithm parameter (alg).

Arguments
  • value - A algorithm

Return a value for a algorithm parameter (alg).

Set a value for a key ID parameter (kid).

Arguments
  • value - A key ID

Return a value for a key ID parameter (kid).

Set a value for a x509 url parameter (x5u).

Arguments
  • value - A x509 url

Return a value for a x509 url parameter (x5u).

Set a value for a x509 certificate SHA-1 thumbprint parameter (x5t).

Arguments
  • 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).

Arguments
  • 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).

Arguments
  • values - X.509 certificate chain

Return values for a X.509 certificate chain parameter (x5c).

Set a value for a curve parameter (crv).

Arguments
  • value - A curve

Return a value for a curve parameter (crv).

Set a value for a key value parameter (k) of a oct type.

Arguments
  • value - A curve

Return a value for a key value parameter (k) of a oct type.

Set a value for a parameter of a specified key.

Arguments
  • key - A key name of a parameter
  • value - A typed value of a parameter

Return a value for a parameter of a specified key.

Arguments
  • key - A key name of a parameter

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

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

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

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.

Performs the conversion.

Performs the conversion.

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.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.