public final void updateAAD (ByteBuffer src)

Continues a multi-part update of the Additional Authentication Data (AAD).

Calls to this method provide AAD to the cipher when operating in modes such as AEAD (GCM/CCM). If this cipher is operating in either GCM or CCM mode, all AAD must be supplied before beginning operations on the ciphertext (via the update and doFinal methods).

All src.remaining() bytes starting at src.position() are processed. Upon return, the input buffer's position will be equal to its limit; its limit will not have changed.

Parameters:
src    the buffer containing the AAD

Exceptions:
IllegalArgumentException    if the src ByteBuffer is null
IllegalStateException    if this cipher is in a wrong state (e.g., has not been initialized), does not accept AAD, or if operating in either GCM or CCM mode and one of the update methods has already been called for the active encryption/decryption operation
UnsupportedOperationException    if the corresponding method in the CipherSpi has not been overridden by an implementation

Since:  1.7