javax.crypto

Class IllegalBlockSizeException

  1. java.lang.Object
  2. extended byjava.lang.Throwable
  3. extended byjava.lang.Exception
  4. extended byjava.security.GeneralSecurityException
  5. extended byjavax.crypto.IllegalBlockSizeException
All implemented interfaces:
java.io.Serializable

  1. public class IllegalBlockSizeException
  2. extends 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.
Since:
1.4
Version:
1.17, 03/15/04
Author:
Jan Luehe
See Also:
Serialized Form

Constructor Summary

Constructor and Description
IllegalBlockSizeException()
Constructs an IllegalBlockSizeException with no detail message.
IllegalBlockSizeException(java.lang.String msg)
Constructs an IllegalBlockSizeException with the specified detail message.

Method Summary

Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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

IllegalBlockSizeException

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

IllegalBlockSizeException

  1. public IllegalBlockSizeException( java.lang.String msg)
Constructs an IllegalBlockSizeException with the specified detail message.
Parameters:
msg - the detail message.