[][src]Struct ironoxide::blocking::BlockingIronOxide

pub struct BlockingIronOxide { /* fields omitted */ }

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.

Methods

impl BlockingIronOxide[src]

pub fn device(&self) -> &DeviceContext[src]

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

pub fn clear_policy_cache(&self) -> usize[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pub fn user_verify(
    jwt: &str,
    timeout: Option<Duration>
) -> Result<Option<UserResult>>
[src]

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

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

Trait Implementations

impl Debug for BlockingIronOxide[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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