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

Primary SDK Object

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.

Implementations

DeviceContext that was used to create this SDK instance

Clears all entries from the policy cache.

Returns the number of entries cleared from the cache.

Rotate the private key of the calling user and all groups they are an administrator of where needs_rotation is true. Note that this function has the potential to take much longer than other functions, as rotation will be done individually on each user/group. If rotation is only needed for a specific group, it is strongly recommended to call user_rotate_private_key or group_rotate_private_key instead.

Arguments
  • rotations - PrivateKeyRotationCheckResult that holds all users and groups to be rotated
  • password - Password to unlock the current user’s user master key
  • timeout - timeout for rotate_all. This is a separate timeout from the SDK-wide timeout as it is expected that this operation might take significantly longer than other operations.

Trait Implementations

Create an index and encrypt it to the provided group_id.

Manual implementation of Debug without the recrypt or rng fields

Formats the value using the given formatter. Read more

Encrypts the provided document bytes without being managed by the IronCore service. Read more

Decrypts a document not managed by the IronCore service. Read more

Encrypts the provided document bytes. Read more

Decrypts an IronCore encrypted document. Read more

Lists metadata for all of the encrypted documents that the calling user can read or decrypt. Read more

Returns the metadata for an encrypted document. Read more

Returns the document ID from the bytes of an encrypted document. Read more

Updates the contents of an existing IronCore encrypted document. Read more

Modifies or removes a document’s name. Read more

Grants decryption access to a document for the provided users and/or groups. Read more

Revokes decryption access to a document for the provided users and/or groups. Read more

Creates a group. Read more

Gets the full metadata for a group. Read more

Lists all of the groups that the current user is an admin or a member of. Read more

Modifies or removes a group’s name. Read more

Rotates a group’s private key while leaving its public key unchanged. Read more

Adds members to a group. Read more

Removes members from a group. Read more

Adds administrators to a group. Read more

Removes administrators from a group. Read more

Deletes a group. Read more

Creates a user. Read more

Generates a new device for the user specified in the JWT. Read more

Verifies the existence of a user using a JWT to identify their user record. Read more

Lists all of the devices for the current user. Read more

Gets users’ public keys given their IDs. Read more

Rotates the current user’s private key while leaving their public key the same. Read more

Deletes a device. Read more

Change the password for the user Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

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

Calls U::from(self).

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

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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

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