pub struct AsymmetricPrivateKeySynchronousProxy { /* private fields */ }
Implementations§
Source§impl AsymmetricPrivateKeySynchronousProxy
impl AsymmetricPrivateKeySynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<AsymmetricPrivateKeyEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<AsymmetricPrivateKeyEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn get_key_origin(
&self,
___deadline: MonotonicInstant,
) -> Result<KeyGetKeyOriginResult, Error>
pub fn get_key_origin( &self, ___deadline: MonotonicInstant, ) -> Result<KeyGetKeyOriginResult, Error>
Get the key origin (generated/imported).
Sourcepub fn get_key_provider(
&self,
___deadline: MonotonicInstant,
) -> Result<KeyGetKeyProviderResult, Error>
pub fn get_key_provider( &self, ___deadline: MonotonicInstant, ) -> Result<KeyGetKeyProviderResult, Error>
Get the name for the crypto provider backing up the key.
Sourcepub fn sign(
&self,
data: Buffer,
___deadline: MonotonicInstant,
) -> Result<AsymmetricPrivateKeySignResult, Error>
pub fn sign( &self, data: Buffer, ___deadline: MonotonicInstant, ) -> Result<AsymmetricPrivateKeySignResult, Error>
Sign data
using the current key. data
needs to be less than MAX_DATA_SIZE
bytes.
Sourcepub fn get_public_key(
&self,
___deadline: MonotonicInstant,
) -> Result<AsymmetricPrivateKeyGetPublicKeyResult, Error>
pub fn get_public_key( &self, ___deadline: MonotonicInstant, ) -> Result<AsymmetricPrivateKeyGetPublicKeyResult, Error>
Get the DER format public key for the current private key.
Sourcepub fn get_key_algorithm(
&self,
___deadline: MonotonicInstant,
) -> Result<AsymmetricPrivateKeyGetKeyAlgorithmResult, Error>
pub fn get_key_algorithm( &self, ___deadline: MonotonicInstant, ) -> Result<AsymmetricPrivateKeyGetKeyAlgorithmResult, Error>
Get the key algorithm.
Trait Implementations§
Source§impl SynchronousProxy for AsymmetricPrivateKeySynchronousProxy
impl SynchronousProxy for AsymmetricPrivateKeySynchronousProxy
Source§type Proxy = AsymmetricPrivateKeyProxy
type Proxy = AsymmetricPrivateKeyProxy
The async proxy for the same protocol.
Source§type Protocol = AsymmetricPrivateKeyMarker
type Protocol = AsymmetricPrivateKeyMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for AsymmetricPrivateKeySynchronousProxy
impl RefUnwindSafe for AsymmetricPrivateKeySynchronousProxy
impl Send for AsymmetricPrivateKeySynchronousProxy
impl Sync for AsymmetricPrivateKeySynchronousProxy
impl Unpin for AsymmetricPrivateKeySynchronousProxy
impl UnwindSafe for AsymmetricPrivateKeySynchronousProxy
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