pub struct DpopKey { /* private fields */ }Expand description
An ephemeral P-256 key pair used for signing DPoP proofs.
Implementations§
Source§impl DpopKey
impl DpopKey
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Restores a DPoP keypair from raw bytes.
Sourcepub fn public_jwk(&self) -> Result<Value>
pub fn public_jwk(&self) -> Result<Value>
Constructs the public JWK representation.
Sourcepub fn jkt(&self) -> Result<String>
pub fn jkt(&self) -> Result<String>
The RFC 7638 JWK thumbprint of the public key (the DPoP jkt).
Auto Trait Implementations§
impl Freeze for DpopKey
impl RefUnwindSafe for DpopKey
impl Send for DpopKey
impl Sync for DpopKey
impl Unpin for DpopKey
impl UnsafeUnpin for DpopKey
impl UnwindSafe for DpopKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more