Class EncryptJob

  • All Implemented Interfaces:
    CryptoJob, java.lang.Runnable

    public class EncryptJob
    extends java.lang.Object
    implements CryptoJob
    Class representing an Encrypt Job
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void closeJob​(java.security.GeneralSecurityException gse)
      Close the job with the given gse
      void run()
      Steps to be performed on encryption 1.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 interface java.lang.Runnable
      • closeJob

        public void closeJob​(java.security.GeneralSecurityException gse)
        Close the job with the given gse
        Specified by:
        closeJob in interface CryptoJob
        Parameters:
        gse - the GeneralSecurityException that needs to be set while invoking callback for the job