[][src]Trait ironoxide::document::advanced::DocumentAdvancedOps

pub trait DocumentAdvancedOps {
    fn document_encrypt_unmanaged(
        &self,
        data: &[u8],
        encrypt_opts: &DocumentEncryptOpts
    ) -> Result<DocumentEncryptUnmanagedResult>; }

Required methods

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

(Advanced) Encrypt the provided document bytes. Return the encrypted document encryption keys (EDEKs) instead of creating a document entry in the IronCore webservice.

The webservice is still needed for looking up public keys and evaluating policies, but no document is created and the edeks are not stored. An additional burden is put on the caller in that the encrypted data AND the edeks need to be provided for decryption.

Arguments

  • document_data - Bytes of the document to encrypt
  • encrypt_opts - Optional document encrypt parameters. Includes id - Unique ID to use for the document. Document ID will be stored unencrypted and must be unique per segment. name - (Ignored) - Any name provided will be ignored grant_to_author - Flag determining whether to encrypt to the calling user or not. If set to false at least one value must be present in the grants list. grants - List of users/groups to grant access to this document once encrypted
Loading content...

Implementors

impl DocumentAdvancedOps for IronOxide[src]

Loading content...