[−][src]Struct ironoxide::blocking::BlockingIronOxide
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]
&self,
group_id: &GroupId
) -> Result<EncryptedBlindIndexSalt>
pub fn rotate_all(
&self,
rotations: &PrivateKeyRotationCheckResult,
password: &str,
timeout: Option<Duration>
) -> Result<(Option<UserUpdatePrivateKeyResult>, Option<Vec<GroupUpdatePrivateKeyResult>>)>
[src]
&self,
rotations: &PrivateKeyRotationCheckResult,
password: &str,
timeout: Option<Duration>
) -> Result<(Option<UserUpdatePrivateKeyResult>, Option<Vec<GroupUpdatePrivateKeyResult>>)>
pub fn document_list(&self) -> Result<DocumentListResult>
[src]
pub fn document_get_metadata(
&self,
id: &DocumentId
) -> Result<DocumentMetadataResult>
[src]
&self,
id: &DocumentId
) -> Result<DocumentMetadataResult>
pub fn document_get_id_from_bytes(
&self,
encrypted_document: &[u8]
) -> Result<DocumentId>
[src]
&self,
encrypted_document: &[u8]
) -> Result<DocumentId>
pub fn document_encrypt(
&self,
document_data: &[u8],
encrypt_opts: &DocumentEncryptOpts
) -> Result<DocumentEncryptResult>
[src]
&self,
document_data: &[u8],
encrypt_opts: &DocumentEncryptOpts
) -> Result<DocumentEncryptResult>
pub fn document_update_bytes(
&self,
id: &DocumentId,
new_document_data: &[u8]
) -> Result<DocumentEncryptResult>
[src]
&self,
id: &DocumentId,
new_document_data: &[u8]
) -> Result<DocumentEncryptResult>
pub fn document_decrypt(
&self,
encrypted_document: &[u8]
) -> Result<DocumentDecryptResult>
[src]
&self,
encrypted_document: &[u8]
) -> Result<DocumentDecryptResult>
pub fn document_update_name(
&self,
id: &DocumentId,
name: Option<&DocumentName>
) -> Result<DocumentMetadataResult>
[src]
&self,
id: &DocumentId,
name: Option<&DocumentName>
) -> Result<DocumentMetadataResult>
pub fn document_grant_access(
&self,
id: &DocumentId,
grant_list: &Vec<UserOrGroup>
) -> Result<DocumentAccessResult>
[src]
&self,
id: &DocumentId,
grant_list: &Vec<UserOrGroup>
) -> Result<DocumentAccessResult>
pub fn document_revoke_access(
&self,
id: &DocumentId,
revoke_list: &Vec<UserOrGroup>
) -> Result<DocumentAccessResult>
[src]
&self,
id: &DocumentId,
revoke_list: &Vec<UserOrGroup>
) -> Result<DocumentAccessResult>
pub fn document_encrypt_unmanaged(
&self,
data: &[u8],
encrypt_opts: &DocumentEncryptOpts
) -> Result<DocumentEncryptUnmanagedResult>
[src]
&self,
data: &[u8],
encrypt_opts: &DocumentEncryptOpts
) -> Result<DocumentEncryptUnmanagedResult>
pub fn document_decrypt_unmanaged(
&self,
encrypted_data: &[u8],
encrypted_deks: &[u8]
) -> Result<DocumentDecryptUnmanagedResult>
[src]
&self,
encrypted_data: &[u8],
encrypted_deks: &[u8]
) -> Result<DocumentDecryptUnmanagedResult>
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]
&self,
id: &GroupId,
name: Option<&GroupName>
) -> Result<GroupMetaResult>
pub fn group_add_members(
&self,
id: &GroupId,
grant_list: &[UserId]
) -> Result<GroupAccessEditResult>
[src]
&self,
id: &GroupId,
grant_list: &[UserId]
) -> Result<GroupAccessEditResult>
pub fn group_remove_members(
&self,
id: &GroupId,
revoke_list: &[UserId]
) -> Result<GroupAccessEditResult>
[src]
&self,
id: &GroupId,
revoke_list: &[UserId]
) -> Result<GroupAccessEditResult>
pub fn group_add_admins(
&self,
id: &GroupId,
users: &[UserId]
) -> Result<GroupAccessEditResult>
[src]
&self,
id: &GroupId,
users: &[UserId]
) -> Result<GroupAccessEditResult>
pub fn group_remove_admins(
&self,
id: &GroupId,
revoke_list: &[UserId]
) -> Result<GroupAccessEditResult>
[src]
&self,
id: &GroupId,
revoke_list: &[UserId]
) -> Result<GroupAccessEditResult>
pub fn group_rotate_private_key(
&self,
id: &GroupId
) -> Result<GroupUpdatePrivateKeyResult>
[src]
&self,
id: &GroupId
) -> Result<GroupUpdatePrivateKeyResult>
pub fn user_create(
jwt: &str,
password: &str,
user_create_opts: &UserCreateOpts,
timeout: Option<Duration>
) -> Result<UserCreateResult>
[src]
jwt: &str,
password: &str,
user_create_opts: &UserCreateOpts,
timeout: Option<Duration>
) -> Result<UserCreateResult>
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]
jwt: &str,
password: &str,
device_create_options: &DeviceCreateOpts,
timeout: Option<Duration>
) -> Result<DeviceAddResult>
pub fn user_delete_device(
&self,
device_id: Option<&DeviceId>
) -> Result<DeviceId>
[src]
&self,
device_id: Option<&DeviceId>
) -> Result<DeviceId>
pub fn user_verify(
jwt: &str,
timeout: Option<Duration>
) -> Result<Option<UserResult>>
[src]
jwt: &str,
timeout: Option<Duration>
) -> Result<Option<UserResult>>
pub fn user_get_public_key(
&self,
users: &[UserId]
) -> Result<HashMap<UserId, PublicKey>>
[src]
&self,
users: &[UserId]
) -> Result<HashMap<UserId, PublicKey>>
pub fn user_rotate_private_key(
&self,
password: &str
) -> Result<UserUpdatePrivateKeyResult>
[src]
&self,
password: &str
) -> Result<UserUpdatePrivateKeyResult>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for BlockingIronOxide
impl Send for BlockingIronOxide
impl Sync for BlockingIronOxide
impl Unpin for BlockingIronOxide
impl !UnwindSafe for BlockingIronOxide
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,