[][src]Struct picky::jose::jwk::Jwk

pub struct Jwk {
    pub key: JwkKeyType,
    pub algorithm: Option<SignatureHashType>,
    pub pub_key_use: Option<JwkPubKeyUse>,
    pub key_operations: Option<Vec<JwkKeyOps>>,
    pub key_id: Option<String>,
    pub x509_url: Option<String>,
    pub x509_chain: Option<Vec<String>>,
    pub x509_sha1_thumbprint: Option<String>,
    pub x509_sha256_thumbprint: Option<String>,
}

Fields

key: JwkKeyTypealgorithm: Option<SignatureHashType>pub_key_use: Option<JwkPubKeyUse>key_operations: Option<Vec<JwkKeyOps>>key_id: Option<String>x509_url: Option<String>x509_chain: Option<Vec<String>>x509_sha1_thumbprint: Option<String>x509_sha256_thumbprint: Option<String>

Methods

impl Jwk[src]

pub fn new(key: JwkKeyType) -> Self[src]

pub fn from_json(json: &str) -> Result<Self, JwkError>[src]

pub fn from_public_key(public_key: &PublicKey) -> Result<Self, JwkError>[src]

pub fn to_json(&self) -> Result<String, JwkError>[src]

pub fn to_json_pretty(&self) -> Result<String, JwkError>[src]

pub fn to_public_key(&self) -> Result<PublicKey, JwkError>[src]

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]

Auto Trait Implementations

impl RefUnwindSafe for Jwk

impl Send for Jwk

impl Sync for Jwk

impl Unpin for Jwk

impl UnwindSafe for Jwk

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<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> 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, 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>,