public interface EncryptedDocumentWriteService
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
write(AbsoluteLocation<PrivateResource> location,
SecretKeyIDWithKey secretKey)
Writes and encrypts data using symmetric cryptography.
|
OutputStream |
write(AbsoluteLocation<PublicResource> location,
PublicKeyIDWithPublicKey publicKey)
Writes and encrypts data using public key cryptography, so that only private key owner can read it.
|
OutputStream write(AbsoluteLocation<PublicResource> location, PublicKeyIDWithPublicKey publicKey)
location - Where to write datapublicKey - Public key and its ID to encrypt withOutputStream write(AbsoluteLocation<PrivateResource> location, SecretKeyIDWithKey secretKey)
location - Where to write datasecretKey - Secret key and its ID to encrypt withCopyright © 2019. All rights reserved.