public interface CMSEncryptionService
| Modifier and Type | Method and Description |
|---|---|
InputStream |
buildDecryptionInputStream(InputStream inputStream,
Function<String,Key> keyById)
Builds decrypted stream out of encrypted one.
|
OutputStream |
buildEncryptionOutputStream(OutputStream dataContentStream,
PublicKey publicKey,
KeyID publicKeyID)
Builds asymmetrically encrypted stream using public-key cryptography.
|
OutputStream |
buildEncryptionOutputStream(OutputStream dataContentStream,
SecretKey secretKey,
KeyID secretKeyID)
Builds symmetrically encrypted stream.
|
OutputStream buildEncryptionOutputStream(OutputStream dataContentStream, PublicKey publicKey, KeyID publicKeyID)
dataContentStream - Stream to encryptpublicKey - User public keypublicKeyID - User public-key ID gets embedded into a stream, used for finding the private key to decryptdataContentStreamOutputStream buildEncryptionOutputStream(OutputStream dataContentStream, SecretKey secretKey, KeyID secretKeyID)
dataContentStream - Stream to encryptsecretKey - User secret keysecretKeyID - User key ID gets embedded into a stream, used for finding the key to decryptdataContentStreamInputStream buildDecryptionInputStream(InputStream inputStream, Function<String,Key> keyById)
inputStream - Stream to decryptkeyById - Key to its ID mapping, will retrieve key for decryption using thisinputStreamCopyright © 2019. All rights reserved.