Class ParsedCiphertext


  • public class ParsedCiphertext
    extends CiphertextHeaders
    Exposes header information of ciphertexts to make it easier to inspect the algorithm, keys, and encryption context prior to decryption. Please note that the class does not make defensive copies.
    • Constructor Detail

      • ParsedCiphertext

        public ParsedCiphertext​(byte[] ciphertext)
        Parses ciphertext. Please note that this does not make a defensive copy of ciphertext and that any changes made to the backing array will be reflected here as well.
    • Method Detail

      • getCiphertext

        public byte[] getCiphertext()
        Returns the raw ciphertext backing this object. This is not a defensive copy and so must not be modified by callers.
      • getOffset

        public int getOffset()
        The offset at which the first non-header byte in ciphertext is located.