Package javax.crypto

Class IllegalBlockSizeException

  • All Implemented Interfaces:
    Serializable

    public class IllegalBlockSizeException
    extends GeneralSecurityException
    The exception, that is thrown when the data length provided to a block cipher does not match the block size of the cipher.
    See Also:
    Serialized Form
    • Constructor Detail

      • IllegalBlockSizeException

        public IllegalBlockSizeException​(String msg)
        Creates a new IllegalBlockSizeException with the specified message.
        Parameters:
        msg - the message
      • IllegalBlockSizeException

        public IllegalBlockSizeException()
        Creates a new IllegalBlockSizeException.