Struct jwt_simple::algorithms::PS384KeyPair
source · pub struct PS384KeyPair { /* private fields */ }
Implementations§
source§impl PS384KeyPair
impl PS384KeyPair
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) -> PS384PublicKey
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 PS384KeyPair
impl Clone for PS384KeyPair
source§fn clone(&self) -> PS384KeyPair
fn clone(&self) -> PS384KeyPair
Returns a copy 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 more