pub struct SigningKey { /* private fields */ }Expand description
A private key that signs tokens
Implementations§
Source§impl SigningKey
impl SigningKey
Sourcepub fn rs256_pkcs8(der: &[u8]) -> Result<Self>
pub fn rs256_pkcs8(der: &[u8]) -> Result<Self>
RS256 key from PKCS#8 DER
Sourcepub fn es256_pkcs8(der: &[u8]) -> Result<Self>
pub fn es256_pkcs8(der: &[u8]) -> Result<Self>
ES256 key from PKCS#8 DER
pub fn algorithm(&self) -> Algorithm
Sourcepub fn verifying_key(&self) -> VerifyingKey
pub fn verifying_key(&self) -> VerifyingKey
The matching public key, to publish or to verify with
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SigningKey
impl RefUnwindSafe for SigningKey
impl Send for SigningKey
impl Sync for SigningKey
impl Unpin for SigningKey
impl UnsafeUnpin for SigningKey
impl UnwindSafe for SigningKey
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