aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/spongycastle/jce/src/main/java/javax/crypto/IllegalBlockSizeException.java
blob: 5cd4176b2cfec6918b62236853e3dcf1948afcdb (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
29
30
31
32
33
34
35
36
package javax.crypto;

import java.security.GeneralSecurityException;

/**
 * This exception is thrown when the length of data provided to a block
 * cipher is incorrect, i.e., does not match the block size of the cipher.
 *
 */
public class IllegalBlockSizeException
    extends GeneralSecurityException
{
    private static final long serialVersionUID = -1965144811953540392L;

    /**
     * Constructs an IllegalBlockSizeException with no detail message.
     * (A detail message is a String that describes this particular
     * exception.)
     */
    public IllegalBlockSizeException()
    {
    }

    /**
     * Constructs an IllegalBlockSizeException with the specified
     * detail message. (A detail message is a String that describes
     * this particular exception.)
     *
     * @param msg the detail message.
     */
    public IllegalBlockSizeException(
        String  msg)
    {
        super(msg);
    }
}