Package com.github.ambry.router
Class EncryptJob
- java.lang.Object
-
- com.github.ambry.router.EncryptJob
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeJob(java.security.GeneralSecurityException gse)
Close the job with the givengse
void
run()
Steps to be performed on encryption 1.
-
-
-
Method Detail
-
run
public void run()
Steps to be performed on encryption 1. Encrypt blob content using perBlobKey if not null 2. Encrypt user-metadata using perBlobKey if not null 2. Fetch ContainerKey from kms for the given blob 3. Encrypt perBlobKey using containerKey 4. Invoke callback with the encryptedKey and encryptedBlobContent- Specified by:
run
in interfacejava.lang.Runnable
-
-