[−][src]Struct ironoxide::IronOxide
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.
Methods
impl IronOxide
[src]
pub fn device(&self) -> &DeviceContext
[src]
Get the DeviceContext
instance that was used to create this SDK instance
Trait Implementations
impl DocumentAdvancedOps for IronOxide
[src]
fn document_encrypt_unmanaged(
&self,
data: &[u8],
encrypt_opts: &DocumentEncryptOpts
) -> Result<DocumentEncryptUnmanagedResult>
[src]
&self,
data: &[u8],
encrypt_opts: &DocumentEncryptOpts
) -> Result<DocumentEncryptUnmanagedResult>
fn document_decrypt_unmanaged(
&self,
encrypted_data: &[u8],
encrypted_deks: &[u8]
) -> Result<DocumentDecryptUnmanagedResult>
[src]
&self,
encrypted_data: &[u8],
encrypted_deks: &[u8]
) -> Result<DocumentDecryptUnmanagedResult>
impl DocumentOps for IronOxide
[src]
fn document_list(&self) -> Result<DocumentListResult>
[src]
fn document_get_metadata(
&self,
id: &DocumentId
) -> Result<DocumentMetadataResult>
[src]
&self,
id: &DocumentId
) -> Result<DocumentMetadataResult>
fn document_get_id_from_bytes(
&self,
encrypted_document: &[u8]
) -> Result<DocumentId>
[src]
&self,
encrypted_document: &[u8]
) -> Result<DocumentId>
fn document_encrypt(
&self,
document_data: &[u8],
encrypt_opts: &DocumentEncryptOpts
) -> Result<DocumentEncryptResult>
[src]
&self,
document_data: &[u8],
encrypt_opts: &DocumentEncryptOpts
) -> Result<DocumentEncryptResult>
fn document_update_bytes(
&self,
id: &DocumentId,
new_document_data: &[u8]
) -> Result<DocumentEncryptResult>
[src]
&self,
id: &DocumentId,
new_document_data: &[u8]
) -> Result<DocumentEncryptResult>
fn document_decrypt(
&self,
encrypted_document: &[u8]
) -> Result<DocumentDecryptResult>
[src]
&self,
encrypted_document: &[u8]
) -> Result<DocumentDecryptResult>
fn document_update_name(
&self,
id: &DocumentId,
name: Option<&DocumentName>
) -> Result<DocumentMetadataResult>
[src]
&self,
id: &DocumentId,
name: Option<&DocumentName>
) -> Result<DocumentMetadataResult>
fn document_grant_access(
&self,
id: &DocumentId,
grant_list: &Vec<UserOrGroup>
) -> Result<DocumentAccessResult>
[src]
&self,
id: &DocumentId,
grant_list: &Vec<UserOrGroup>
) -> Result<DocumentAccessResult>
fn document_revoke_access(
&self,
id: &DocumentId,
revoke_list: &Vec<UserOrGroup>
) -> Result<DocumentAccessResult>
[src]
&self,
id: &DocumentId,
revoke_list: &Vec<UserOrGroup>
) -> Result<DocumentAccessResult>
impl GroupOps for IronOxide
[src]
fn group_list(&self) -> Result<GroupListResult>
[src]
fn group_create(&self, opts: &GroupCreateOpts) -> Result<GroupMetaResult>
[src]
fn group_get_metadata(&self, id: &GroupId) -> Result<GroupGetResult>
[src]
fn group_delete(&self, id: &GroupId) -> Result<GroupId>
[src]
fn group_update_name(
&self,
id: &GroupId,
name: Option<&GroupName>
) -> Result<GroupMetaResult>
[src]
&self,
id: &GroupId,
name: Option<&GroupName>
) -> Result<GroupMetaResult>
fn group_add_members(
&self,
id: &GroupId,
grant_list: &[UserId]
) -> Result<GroupAccessEditResult>
[src]
&self,
id: &GroupId,
grant_list: &[UserId]
) -> Result<GroupAccessEditResult>
fn group_remove_members(
&self,
id: &GroupId,
revoke_list: &[UserId]
) -> Result<GroupAccessEditResult>
[src]
&self,
id: &GroupId,
revoke_list: &[UserId]
) -> Result<GroupAccessEditResult>
fn group_add_admins(
&self,
id: &GroupId,
users: &[UserId]
) -> Result<GroupAccessEditResult>
[src]
&self,
id: &GroupId,
users: &[UserId]
) -> Result<GroupAccessEditResult>
fn group_remove_admins(
&self,
id: &GroupId,
revoke_list: &[UserId]
) -> Result<GroupAccessEditResult>
[src]
&self,
id: &GroupId,
revoke_list: &[UserId]
) -> Result<GroupAccessEditResult>
impl UserOps for IronOxide
[src]
fn user_verify(jwt: &str) -> Result<Option<UserVerifyResult>>
[src]
fn user_create(jwt: &str, password: &str) -> Result<UserCreateKeyPair>
[src]
fn generate_new_device(
jwt: &str,
password: &str,
device_create_options: &DeviceCreateOpts
) -> Result<DeviceContext>
[src]
jwt: &str,
password: &str,
device_create_options: &DeviceCreateOpts
) -> Result<DeviceContext>
fn user_get_public_key(
&self,
users: &[UserId]
) -> Result<HashMap<UserId, PublicKey>>
[src]
&self,
users: &[UserId]
) -> Result<HashMap<UserId, PublicKey>>
fn user_list_devices(&self) -> Result<UserDeviceListResult>
[src]
fn user_delete_device(&self, device_id: Option<&DeviceId>) -> Result<DeviceId>
[src]
Auto Trait Implementations
impl Unpin for IronOxide
impl Send for IronOxide
impl Sync for IronOxide
impl RefUnwindSafe for IronOxide
impl UnwindSafe for IronOxide
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,