Interface EncryptedDocumentWriteService
public interface EncryptedDocumentWriteService
Encrypted document write operation.
-
Method Summary
Modifier and TypeMethodDescriptionwrite(WithCallback<AbsoluteLocation<PrivateResource>, ResourceWriteCallback> locationWithCallback, SecretKeyIDWithKey secretKey) Writes and encrypts data using symmetric cryptography.write(Map<PublicKeyIDWithPublicKey, AbsoluteLocation> recipientsWithInbox) Writes and encrypts data using public key cryptography, so that only private key owner can read it.
-
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
OutputStream write(WithCallback<AbsoluteLocation<PrivateResource>, ResourceWriteCallback> locationWithCallback, SecretKeyIDWithKey secretKey) Writes and encrypts data using symmetric cryptography.- Parameters:
locationWithCallback- Where to write data with callbacks to notifysecretKey- Secret key and its ID to encrypt with- Returns:
- Sink where you can send unencrypted data that will be encrypted and stored
-