[−][src]Struct aliri_jose::Jwk
An identified JSON Web Key
Implementations
impl Jwk
[src]
pub fn key_id(&self) -> Option<&KeyIdRef>
[src]
The key ID
pub fn usage(&self) -> Option<Usage>
[src]
The intended usage of the key
pub fn algorithm(&self) -> Option<Algorithm>
[src]
The algorithm to be used with this JWK
pub fn is_compatible(&self, alg: Algorithm) -> bool
[src]
Whether the key is compatible with the given algorithm
pub fn with_key_id(self, kid: KeyId) -> Self
[src]
Sets the key ID
pub fn with_usage(self, usage: Usage) -> Self
[src]
Sets the key's usage
pub fn with_algorithm(self, alg: impl Into<Algorithm>) -> Self
[src]
Sets the algorithm and usage consistent with that algorithm
pub fn public_only(self) -> Self
[src]
Strips any private key components
Trait Implementations
impl Clone for Jwk
[src]
impl Debug for Jwk
[src]
impl<'de> Deserialize<'de> for Jwk
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Jwk
[src]
impl From<Hmac> for Jwk
[src]
impl From<PublicKey> for Jwk
[src]
impl From<Rsa> 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 Verifier 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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,