Class CiphertextFooters
java.lang.Object
com.amazonaws.encryptionsdk.model.CiphertextFooters
This class encapsulates the optional footer information which follows the actual protected
content.
It contains the following fields in order:
- AuthLength - 2 bytes
- MAuth -
AuthLength
bytes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
deserialize(byte[] b, int off)
Parses the footers from theb
starting at offsetoff
and returns the number of bytes parsed/consumed.int
byte[]
getMAuth()
boolean
Check if this object has all the header fields populated and available for reading.byte[]
-
Constructor Details
-
CiphertextFooters
public CiphertextFooters() -
CiphertextFooters
public CiphertextFooters(byte[] mAuth)
-
-
Method Details
-
deserialize
Parses the footers from theb
starting at offsetoff
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()
-