AEADBadTagException

  • AEADBadTagException signals that a Cipher in AEAD mode (like GCM/CCM) failed to verify the authentication tag.

  • This exception is a subclass of BadPaddingException and typically indicates data corruption or tampering.

  • It provides constructors to create instances with or without a detailed error message.

  • Developers should handle this exception to ensure data integrity and security in AEAD cipher operations.

public class AEADBadTagException extends BadPaddingException

This exception is thrown when a Cipher operating in an AEAD mode (such as GCM/CCM) is unable to verify the supplied authentication tag.

Public Constructor Summary

AEADBadTagException()
Constructs a AEADBadTagException with no detail message.
AEADBadTagException(String msg)
Constructs a AEADBadTagException with the specified detail message.

Inherited Method Summary

Public Constructors

public AEADBadTagException ()

Constructs a AEADBadTagException with no detail message.

public AEADBadTagException (String msg)

Constructs a AEADBadTagException with the specified detail message.

Parameters
msg the detail message.