pub struct RS384KeyPair { /* private fields */ }Implementations§
Source§impl RS384KeyPair
impl RS384KeyPair
pub fn from_der(der: &[u8]) -> Result<Self, Error>
pub fn from_pem(pem: &str) -> Result<Self, Error>
pub fn to_der(&self) -> Result<Vec<u8>, Error>
pub fn to_pem(&self) -> Result<String, Error>
pub fn public_key(&self) -> RS384PublicKey
pub fn generate(modulus_bits: usize) -> Result<Self, Error>
pub fn with_key_id(self, key_id: &str) -> Self
Trait Implementations§
Source§impl Clone for RS384KeyPair
impl Clone for RS384KeyPair
Source§fn clone(&self) -> RS384KeyPair
fn clone(&self) -> RS384KeyPair
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RS384KeyPair
impl Debug for RS384KeyPair
Source§impl RSAKeyPairLike for RS384KeyPair
impl RSAKeyPairLike for RS384KeyPair
fn jwt_alg_name() -> &'static str
fn key_pair(&self) -> &RSAKeyPair
fn key_id(&self) -> &Option<String>
fn metadata(&self) -> &Option<KeyMetadata>
fn attach_metadata(&mut self, metadata: KeyMetadata) -> Result<(), Error>
fn hash() -> MessageDigest
fn padding_scheme(&self) -> Padding
fn sign<CustomClaims: Serialize>( &self, claims: JWTClaims<CustomClaims>, ) -> Result<String, Error>
fn sign_with_options<CustomClaims: Serialize>( &self, claims: JWTClaims<CustomClaims>, opts: &HeaderOptions, ) -> Result<String, Error>
Auto Trait Implementations§
impl Freeze for RS384KeyPair
impl RefUnwindSafe for RS384KeyPair
impl Send for RS384KeyPair
impl Sync for RS384KeyPair
impl Unpin for RS384KeyPair
impl UnsafeUnpin for RS384KeyPair
impl UnwindSafe for RS384KeyPair
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