InvalidCipherTextIOException (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

org.bouncycastle.crypto.io

## Class InvalidCipherTextIOException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.io.IOException
      - - org.bouncycastle.crypto.io.CipherIOException
        - - org.bouncycastle.crypto.io.InvalidCipherTextIOException

- All Implemented Interfaces:
    java.io.Serializable

      public class InvalidCipherTextIOException
      extends CipherIOException

  `IOException` wrapper around an exception indicating an invalid ciphertext, such as in authentication failure during finalisation of an AEAD cipher. For use in streams that need to expose invalid ciphertext errors.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `InvalidCipherTextIOException(java.lang.String message, java.lang.Throwable cause)`

  - ### Method Summary

    - ### Methods inherited from class org.bouncycastle.crypto.io.CipherIOException

      `getCause`

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### InvalidCipherTextIOException

          public InvalidCipherTextIOException(java.lang.String message,
                                              java.lang.Throwable cause)