pub struct ES384KeyPair { /* private fields */ }Implementations§
Source§impl ES384KeyPair
impl ES384KeyPair
pub fn from_bytes(raw: &[u8]) -> Result<Self, Error>
pub fn from_der(der: &[u8]) -> Result<Self, Error>
pub fn from_pem(pem: &str) -> Result<Self, Error>
pub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn to_der(&self) -> Result<Vec<u8>, Error>
pub fn to_pem(&self) -> Result<String, Error>
pub fn public_key(&self) -> ES384PublicKey
pub fn generate() -> Self
pub fn with_key_id(self, key_id: &str) -> Self
Trait Implementations§
Source§impl Debug for ES384KeyPair
impl Debug for ES384KeyPair
Source§impl ECDSAP384KeyPairLike for ES384KeyPair
impl ECDSAP384KeyPairLike for ES384KeyPair
fn jwt_alg_name() -> &'static str
fn key_pair(&self) -> &P384KeyPair
fn key_id(&self) -> &Option<String>
fn metadata(&self) -> &Option<KeyMetadata>
fn attach_metadata(&mut self, metadata: KeyMetadata) -> Result<(), Error>
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 ES384KeyPair
impl RefUnwindSafe for ES384KeyPair
impl Send for ES384KeyPair
impl Sync for ES384KeyPair
impl Unpin for ES384KeyPair
impl UnsafeUnpin for ES384KeyPair
impl UnwindSafe for ES384KeyPair
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