pub struct BlockingIronOxide { /* private fields */ }
Expand description

Struct that is used to make authenticated requests to the IronCore API. Instantiated with the details of an account’s various ids, device, and signing keys. Once instantiated all operations will be performed in the context of the account provided. Identical to IronOxide but also contains a Runtime.

Implementations§

source§

impl BlockingIronOxide

source

pub fn device(&self) -> &DeviceContext

Get the DeviceContext instance that was used to create this SDK instance

source

pub fn clear_policy_cache(&self) -> usize

source

pub fn create_blind_index( &self, group_id: &GroupId ) -> Result<EncryptedBlindIndexSalt>

source

pub fn rotate_all( &self, rotations: &PrivateKeyRotationCheckResult, password: &str, timeout: Option<Duration> ) -> Result<(Option<UserUpdatePrivateKeyResult>, Option<Vec<GroupUpdatePrivateKeyResult>>)>

source

pub fn document_list(&self) -> Result<DocumentListResult>

source

pub fn document_get_metadata( &self, id: &DocumentId ) -> Result<DocumentMetadataResult>

source

pub fn document_get_id_from_bytes( &self, encrypted_document: &[u8] ) -> Result<DocumentId>

source

pub fn document_encrypt( &self, document_data: Vec<u8>, encrypt_opts: &DocumentEncryptOpts ) -> Result<DocumentEncryptResult>

source

pub fn document_update_bytes( &self, id: &DocumentId, new_document_data: Vec<u8> ) -> Result<DocumentEncryptResult>

source

pub fn document_decrypt( &self, encrypted_document: &[u8] ) -> Result<DocumentDecryptResult>

source

pub fn document_update_name( &self, id: &DocumentId, name: Option<&DocumentName> ) -> Result<DocumentMetadataResult>

source

pub fn document_grant_access( &self, id: &DocumentId, grant_list: &Vec<UserOrGroup> ) -> Result<DocumentAccessResult>

source

pub fn document_revoke_access( &self, id: &DocumentId, revoke_list: &Vec<UserOrGroup> ) -> Result<DocumentAccessResult>

source

pub fn document_encrypt_unmanaged( &self, data: Vec<u8>, encrypt_opts: &DocumentEncryptOpts ) -> Result<DocumentEncryptUnmanagedResult>

source

pub fn document_decrypt_unmanaged( &self, encrypted_data: &[u8], encrypted_deks: &[u8] ) -> Result<DocumentDecryptUnmanagedResult>

source

pub fn group_list(&self) -> Result<GroupListResult>

source

pub fn group_create(&self, opts: &GroupCreateOpts) -> Result<GroupCreateResult>

source

pub fn group_get_metadata(&self, id: &GroupId) -> Result<GroupGetResult>

source

pub fn group_delete(&self, id: &GroupId) -> Result<GroupId>

source

pub fn group_update_name( &self, id: &GroupId, name: Option<&GroupName> ) -> Result<GroupMetaResult>

source

pub fn group_add_members( &self, id: &GroupId, grant_list: &[UserId] ) -> Result<GroupAccessEditResult>

source

pub fn group_remove_members( &self, id: &GroupId, revoke_list: &[UserId] ) -> Result<GroupAccessEditResult>

source

pub fn group_add_admins( &self, id: &GroupId, users: &[UserId] ) -> Result<GroupAccessEditResult>

source

pub fn group_remove_admins( &self, id: &GroupId, revoke_list: &[UserId] ) -> Result<GroupAccessEditResult>

source

pub fn group_rotate_private_key( &self, id: &GroupId ) -> Result<GroupUpdatePrivateKeyResult>

source

pub fn user_create( jwt: &Jwt, password: &str, user_create_opts: &UserCreateOpts, timeout: Option<Duration> ) -> Result<UserCreateResult>

source

pub fn user_list_devices(&self) -> Result<UserDeviceListResult>

source

pub fn generate_new_device( jwt: &Jwt, password: &str, device_create_options: &DeviceCreateOpts, timeout: Option<Duration> ) -> Result<DeviceAddResult>

source

pub fn user_delete_device( &self, device_id: Option<&DeviceId> ) -> Result<DeviceId>

source

pub fn user_verify( jwt: &Jwt, timeout: Option<Duration> ) -> Result<Option<UserResult>>

source

pub fn user_get_public_key( &self, users: &[UserId] ) -> Result<HashMap<UserId, PublicKey>>

source

pub fn user_rotate_private_key( &self, password: &str ) -> Result<UserUpdatePrivateKeyResult>

source

pub fn user_change_password( &self, current_password: &str, new_password: &str ) -> Result<UserUpdateResult>

Trait Implementations§

source§

impl Debug for BlockingIronOxide

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more