Interface EncryptedDocumentWriteService


public interface EncryptedDocumentWriteService
Encrypted document write operation.
  • Method Details

    • write

      Writes and encrypts data using public key cryptography, so that only private key owner can read it. Supports sharing with multiple users, so that encrypted copy will be written to each recipient and he can read it using his private key.
      Parameters:
      recipientsWithInbox - Map of (recipient public key - recipients' inbox) of users with whom to share file.
      Returns:
      Sink where you can send unencrypted data that will be encrypted and stored
    • write

      Writes and encrypts data using symmetric cryptography.
      Parameters:
      locationWithCallback - Where to write data with callbacks to notify
      secretKey - Secret key and its ID to encrypt with
      Returns:
      Sink where you can send unencrypted data that will be encrypted and stored