pub struct RsaKeyPair {
pub kid: String,
pub private_key_pem: String,
pub public_key_pem: String,
pub created_at: DateTime<Utc>,
pub retired_at: Option<DateTime<Utc>>,
}Expand description
An RSA key pair for asymmetric JWT signing
Fields§
§kid: StringUnique key identifier (included in JWT header as kid)
private_key_pem: StringPEM-encoded RSA private key (for signing)
public_key_pem: StringPEM-encoded RSA public key (for verification)
created_at: DateTime<Utc>When this key was created
retired_at: Option<DateTime<Utc>>When this key was retired (rotated out)
Trait Implementations§
Source§impl Clone for RsaKeyPair
impl Clone for RsaKeyPair
Source§impl Drop for RsaKeyPair
impl Drop for RsaKeyPair
Auto Trait Implementations§
impl Freeze for RsaKeyPair
impl RefUnwindSafe for RsaKeyPair
impl Send for RsaKeyPair
impl Sync for RsaKeyPair
impl Unpin for RsaKeyPair
impl UnsafeUnpin for RsaKeyPair
impl UnwindSafe for RsaKeyPair
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