pub struct RsaKeyMaterial(pub RsaPublicKey, pub Option<RsaPrivateKey>);Tuple Fields§
§0: RsaPublicKey§1: Option<RsaPrivateKey>Trait Implementations§
Source§impl Clone for RsaKeyMaterial
impl Clone for RsaKeyMaterial
Source§fn clone(&self) -> RsaKeyMaterial
fn clone(&self) -> RsaKeyMaterial
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 KeyMaterial for RsaKeyMaterial
impl KeyMaterial for RsaKeyMaterial
Source§fn get_jwt_algorithm_name(&self) -> String
fn get_jwt_algorithm_name(&self) -> String
The algorithm that will be used to produce the signature returned by the
sign method in this implementation
Source§fn get_did<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_did<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provides a valid DID that can be used to solve the key
Source§fn sign<'life0, 'life1, 'async_trait>(
&'life0 self,
payload: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sign<'life0, 'life1, 'async_trait>(
&'life0 self,
payload: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sign some data with this key
Source§fn verify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
payload: &'life1 [u8],
signature: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn verify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
payload: &'life1 [u8],
signature: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Verify the alleged signature of some data against this key
Auto Trait Implementations§
impl Freeze for RsaKeyMaterial
impl RefUnwindSafe for RsaKeyMaterial
impl Send for RsaKeyMaterial
impl Sync for RsaKeyMaterial
impl Unpin for RsaKeyMaterial
impl UnwindSafe for RsaKeyMaterial
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