xjava.security
Class IllegalBlockSizeException
RuntimeException
xjava.security.IllegalBlockSizeException
public class IllegalBlockSizeException
extends RuntimeException
This exception is thrown when an incorrect block size is processed
through a cipher.
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.3 $
IllegalBlockSizeException(String message) - Constructs an IllegalBlockSizeException with the specified
detail message.
|
IllegalBlockSizeException(int blockSize, int dataSize) - Constructs an IllegalBlockSizeException with the specified
block size and illegal data size.
|
IllegalBlockSizeException(int blockSize, int dataSize, String message) - Constructs an IllegalBlockSizeException with the specified
block size, illegal data size, and detail message.
|
int | getBlockSize() - Gets the block size of the cipher (or 0 if this was not set).
|
int | getDataSize() - Gets the size of the data passed to the cipher (or 0 if this
was not set).
|
blockSize
public int blockSize
Use getBlockSize().
The block size of the cipher.
dataSize
public int dataSize
Use getDataSize().
The size of the data passed to the cipher.
IllegalBlockSizeException
public IllegalBlockSizeException(String message)
Constructs an IllegalBlockSizeException with the specified
detail message. A detail message is a String that describes
this particular exception.
message
- the detail message.
IllegalBlockSizeException
public IllegalBlockSizeException(int blockSize,
int dataSize)
Constructs an IllegalBlockSizeException with the specified
block size and illegal data size.
The detail message is set to
"blockSize = " +
blockSize + ", dataSize = " + dataSize
.
blockSize
- the block size of the cipher.dataSize
- the illegal size of the data passed to the cipher.
IllegalBlockSizeException
public IllegalBlockSizeException(int blockSize,
int dataSize,
String message)
blockSize
- the block size of the cipher.dataSize
- the illegal size of the data passed to the cipher.message
- the detail message.
getBlockSize
public int getBlockSize()
getDataSize
public int getDataSize()