pub struct KeyPairConfig {
pub private_key_pem: Secret,
}Expand description
Key-pair (RS256 JWT) authentication settings.
Fields§
§private_key_pem: SecretThe RSA private key, PEM-encoded. Must be unencrypted PKCS#8
(-----BEGIN PRIVATE KEY-----); encrypted keys are not yet supported.
Trait Implementations§
Source§impl Clone for KeyPairConfig
impl Clone for KeyPairConfig
Source§fn clone(&self) -> KeyPairConfig
fn clone(&self) -> KeyPairConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KeyPairConfig
impl RefUnwindSafe for KeyPairConfig
impl Send for KeyPairConfig
impl Sync for KeyPairConfig
impl Unpin for KeyPairConfig
impl UnsafeUnpin for KeyPairConfig
impl UnwindSafe for KeyPairConfig
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