blob: 60f218347dc75e93082394ac32e20539818b28f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package org.spongycastle.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 IOException
{
private static final long serialVersionUID = 1L;
private final Throwable cause;
public InvalidCipherTextIOException(String message, Throwable cause)
{
super(message);
this.cause = cause;
}
public Throwable getCause()
{
return cause;
}
}
|