pub struct WithKid<S> { /* private fields */ }
Expand description
A key associated with a key id (kid
).
When the key is used for signing, kid
is automatically set.
Implementations
sourceimpl<S> WithKid<S>
impl<S> WithKid<S>
pub fn new(kid: String, inner: S) -> Self
sourcepub fn new_with_thumbprint_id(inner: S) -> Result<Self> where
S: PublicKeyToJwk,
pub fn new_with_thumbprint_id(inner: S) -> Result<Self> where
S: PublicKeyToJwk,
Use key thumbprint as key id.
pub fn kid(&self) -> &str
pub fn set_kid(&mut self, kid: impl Into<String>)
pub fn as_inner(&self) -> &S
pub fn into_inner(self) -> S
pub fn as_inner_mut(&mut self) -> &mut S
Trait Implementations
sourceimpl<K: PublicKeyToJwk> PublicKeyToJwk for WithKid<K>
impl<K: PublicKeyToJwk> PublicKeyToJwk for WithKid<K>
fn public_key_to_jwk(&self) -> Result<Jwk>
sourceimpl<S: SigningKey> SigningKey for WithKid<S>
impl<S: SigningKey> SigningKey for WithKid<S>
Auto Trait Implementations
impl<S> RefUnwindSafe for WithKid<S> where
S: RefUnwindSafe,
impl<S> Send for WithKid<S> where
S: Send,
impl<S> Sync for WithKid<S> where
S: Sync,
impl<S> Unpin for WithKid<S> where
S: Unpin,
impl<S> UnwindSafe for WithKid<S> where
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more