pub struct CryptoClient<'a> {
pub(crate) client: &'a Client,
}
Fields§
§client: &'a Client
Implementations§
Source§impl<'a> CryptoClient<'a>
impl<'a> CryptoClient<'a>
pub async fn initialize_user_crypto( &self, req: InitUserCryptoRequest, ) -> Result<(), EncryptionSettingsError>
pub async fn initialize_org_crypto( &self, req: InitOrgCryptoRequest, ) -> Result<(), EncryptionSettingsError>
pub async fn get_user_encryption_key(&self) -> Result<String, Error>
pub fn update_password( &self, new_password: String, ) -> Result<UpdatePasswordResponse, Error>
pub fn derive_pin_key(&self, pin: String) -> Result<DerivePinKeyResponse, Error>
pub fn derive_pin_user_key( &self, encrypted_pin: EncString, ) -> Result<EncString, Error>
pub fn enroll_admin_password_reset( &self, public_key: String, ) -> Result<AsymmetricEncString, Error>
Sourcepub fn derive_key_connector(
&self,
request: DeriveKeyConnectorRequest,
) -> Result<String, Error>
pub fn derive_key_connector( &self, request: DeriveKeyConnectorRequest, ) -> Result<String, Error>
Derive the master key for migrating to the key connector
pub fn make_key_pair( &self, user_key: String, ) -> Result<MakeKeyPairResponse, Error>
pub fn verify_asymmetric_keys( &self, request: VerifyAsymmetricKeysRequest, ) -> Result<VerifyAsymmetricKeysResponse, Error>
Auto Trait Implementations§
impl<'a> Freeze for CryptoClient<'a>
impl<'a> !RefUnwindSafe for CryptoClient<'a>
impl<'a> Send for CryptoClient<'a>
impl<'a> Sync for CryptoClient<'a>
impl<'a> Unpin for CryptoClient<'a>
impl<'a> !UnwindSafe for CryptoClient<'a>
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more