Interface MessageCryptoHandler

    • Method Detail

      • setMaxInputLength

        void setMaxInputLength​(long size)
        Informs this handler of an upper bound on the input data size. The handler will throw an exception if this bound is exceeded, and may use it to perform performance optimizations as well. If this method is called multiple times, the smallest bound will be used.
        Parameters:
        size - An upper bound on the input data size.
      • getEncryptionContext

        Map<String,​String> getEncryptionContext()
        Return the encryption context used in the generation of the data key used for the encryption of content.

        During decryption, this value should be obtained by parsing the ciphertext headers that encodes this value.

        Returns:
        the key-value map containing the encryption context.
      • getMasterKeys

        List<? extends MasterKey<?>> getMasterKeys()
        All used MasterKeys. For encryption flows, these are all the MasterKeys used to protect the data. In the decryption flow, it is the single MasterKey actually used to decrypt the data.