Class CiphertextFooters


  • public class CiphertextFooters
    extends Object
    This class encapsulates the optional footer information which follows the actual protected content.

    It contains the following fields in order:

    1. AuthLength - 2 bytes
    2. MAuth - AuthLength bytes
    • Constructor Detail

      • CiphertextFooters

        public CiphertextFooters()
      • CiphertextFooters

        public CiphertextFooters​(byte[] mAuth)
    • Method Detail

      • deserialize

        public int deserialize​(byte[] b,
                               int off)
                        throws ParseException
        Parses the footers from the b starting at offset off and returns the number of bytes parsed/consumed.
        Throws:
        ParseException
      • getAuthLength

        public int getAuthLength()
      • getMAuth

        public byte[] getMAuth()
      • isComplete

        public boolean isComplete()
        Check if this object has all the header fields populated and available for reading.
        Returns:
        true if this object containing the single block header fields is complete; false otherwise.
      • toByteArray

        public byte[] toByteArray()