Class CiphertextFooters
- java.lang.Object
-
- com.amazonaws.encryptionsdk.model.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:
- AuthLength - 2 bytes
- MAuth -
AuthLength
bytes
-
-
Constructor Summary
Constructors Constructor Description CiphertextFooters()
CiphertextFooters(byte[] mAuth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
deserialize(byte[] b, int off)
Parses the footers from theb
starting at offsetoff
and returns the number of bytes parsed/consumed.int
getAuthLength()
byte[]
getMAuth()
boolean
isComplete()
Check if this object has all the header fields populated and available for reading.byte[]
toByteArray()
-
-
-
Method Detail
-
deserialize
public int deserialize(byte[] b, int off) throws ParseException
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()
-
-