[][src]Struct didkit::JWK

pub struct JWK {
    pub public_key_use: Option<String>,
    pub key_operations: Option<Vec<String, Global>>,
    pub algorithm: Option<Algorithm>,
    pub key_id: Option<String>,
    pub x509_url: Option<String>,
    pub x509_certificate_chain: Option<Vec<String, Global>>,
    pub x509_thumbprint_sha1: Option<Base64urlUInt>,
    pub x509_thumbprint_sha256: Option<Base64urlUInt>,
    pub params: Params,
}

Fields

public_key_use: Option<String>key_operations: Option<Vec<String, Global>>algorithm: Option<Algorithm>key_id: Option<String>x509_url: Option<String>x509_certificate_chain: Option<Vec<String, Global>>x509_thumbprint_sha1: Option<Base64urlUInt>x509_thumbprint_sha256: Option<Base64urlUInt>params: Params

Implementations

impl JWK[src]

pub fn generate_ed25519() -> Result<JWK, Error>[src]

pub fn generate_secp256k1() -> Result<JWK, Error>[src]

pub fn get_algorithm(&self) -> Option<Algorithm>[src]

pub fn to_public(&self) -> JWK[src]

Strip private key material

Trait Implementations

impl Clone for JWK[src]

impl Debug for JWK[src]

impl<'de> Deserialize<'de> for JWK[src]

impl Eq for JWK[src]

impl Hash for JWK[src]

impl PartialEq<JWK> for JWK[src]

impl Serialize for JWK[src]

impl StructuralEq for JWK[src]

impl StructuralPartialEq for JWK[src]

impl ToASN1 for JWK[src]

type Error = Error

Auto Trait Implementations

impl RefUnwindSafe for JWK[src]

impl Send for JWK[src]

impl Sync for JWK[src]

impl Unpin for JWK[src]

impl UnwindSafe for JWK[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> Desc<'a, T> for T

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToOwned for T

type Owned = T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,