aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/spongycastle/jce/src/main/java/javax/crypto/IllegalBlockSizeException.java
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/spongycastle/jce/src/main/java/javax/crypto/IllegalBlockSizeException.java')
-rw-r--r--libraries/spongycastle/jce/src/main/java/javax/crypto/IllegalBlockSizeException.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/libraries/spongycastle/jce/src/main/java/javax/crypto/IllegalBlockSizeException.java b/libraries/spongycastle/jce/src/main/java/javax/crypto/IllegalBlockSizeException.java
new file mode 100644
index 000000000..5cd4176b2
--- /dev/null
+++ b/libraries/spongycastle/jce/src/main/java/javax/crypto/IllegalBlockSizeException.java
@@ -0,0 +1,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);
+ }
+}