Class EncryptionContext


  • public class EncryptionContext
    extends java.lang.Object
    A (largely) immutable wrapper for the application-wide file-level encryption settings.
    • Method Detail

      • getEncryptor

        public javax.crypto.Cipher getEncryptor()
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getDecryptor

        public javax.crypto.Cipher getDecryptor()
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • isEnabled

        public boolean isEnabled()
      • getChunkLength

        public int getChunkLength()
      • getIV

        public byte[] getIV()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toHeaderParameters

        public java.util.Map<java.lang.String,​java.lang.String> toHeaderParameters()
      • createFromMap

        public static EncryptionContext createFromMap​(java.util.Map<?,​?> parameters,
                                                      EncryptionContext encryptionContext)
        If encryption headers are found in the parameters, those headers are merged with the application-wide encryptionContext.