summaryrefslogtreecommitdiffstats
path: root/bcprov/src/main/java/org/bouncycastle/crypto/io/InvalidCipherTextIOException.java
blob: 46561c670540fceefd84bb5eb366b1493b8e6b1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package org.bouncycastle.crypto.io;

import java.io.IOException;

/**
 * {@link 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.
 */
public class InvalidCipherTextIOException
    extends CipherIOException
{
    private static final long serialVersionUID = 1L;

    public InvalidCipherTextIOException(String message, Throwable cause)
    {
        super(message, cause);
    }
}