pub struct JwtKeyPairConfig {
pub algorithm: JwtAlgorithm,
pub modulus_length: u32,
}Expand description
Parameters for primary or lazily provisioned additional signing keys.
Fields§
§algorithm: JwtAlgorithmSigning algorithm.
modulus_length: u32RSA modulus length for RS256 and PS256. Defaults to 2048 bits.
Implementations§
Source§impl JwtKeyPairConfig
impl JwtKeyPairConfig
Sourcepub fn new(algorithm: JwtAlgorithm) -> Self
pub fn new(algorithm: JwtAlgorithm) -> Self
Use the upstream default key parameters for an algorithm.
Trait Implementations§
Source§impl Clone for JwtKeyPairConfig
impl Clone for JwtKeyPairConfig
impl Copy for JwtKeyPairConfig
Source§impl Debug for JwtKeyPairConfig
impl Debug for JwtKeyPairConfig
Source§impl<'de> Deserialize<'de> for JwtKeyPairConfig
impl<'de> Deserialize<'de> for JwtKeyPairConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for JwtKeyPairConfig
impl RefUnwindSafe for JwtKeyPairConfig
impl Send for JwtKeyPairConfig
impl Sync for JwtKeyPairConfig
impl Unpin for JwtKeyPairConfig
impl UnsafeUnpin for JwtKeyPairConfig
impl UnwindSafe for JwtKeyPairConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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