public interface CloudBlobCryptoAgent
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
decrypt(java.nio.ByteBuffer buffer)
Decrypts the blob buffer being downloaded from cloud storage.
|
java.nio.ByteBuffer |
encrypt(java.nio.ByteBuffer buffer)
Encrypts the blob buffer being uploaded to cloud storage.
|
java.lang.String |
getEncryptionContext()
Returns the encryption context (if any)
|
java.nio.ByteBuffer encrypt(java.nio.ByteBuffer buffer) throws java.security.GeneralSecurityException
buffer
- The ByteBuffer
that needs to be encrypted.{@link
- GeneralSecurityException} on any exception with encryption.java.security.GeneralSecurityException
java.nio.ByteBuffer decrypt(java.nio.ByteBuffer buffer) throws java.security.GeneralSecurityException
buffer
- The ByteBuffer
that needs to be decrypted.{@link
- GeneralSecurityException} on any exception with decryptionjava.security.GeneralSecurityException
java.lang.String getEncryptionContext()