All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.security.IllegalBlockSizeException

java.lang.Object
   |
   +----java.lang.Throwable
           |
           +----java.lang.Exception
                   |
                   +----java.lang.RuntimeException
                           |
                           +----java.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.2 $

Author:
David Hopwood

Variable Index

 o blockSize
The block size of the cipher. Deprecated.
 o dataSize
The size of the data passed to the cipher. Deprecated.

Constructor Index

 o IllegalBlockSizeException(int, int)
Constructs an IllegalBlockSizeException with the specified block size and illegal data size.
 o IllegalBlockSizeException(int, int, String)
Constructs an IllegalBlockSizeException with the specified block size, illegal data size, and detail message.
 o IllegalBlockSizeException(String)
Constructs an IllegalBlockSizeException with the specified detail message.

Method Index

 o getBlockSize()
Gets the block size of the cipher (or 0 if this was not set).
 o getDataSize()
Gets the size of the data passed to the cipher (or 0 if this was not set).

Variables

 o blockSize
 public int blockSize
Note: blockSize is deprecated. Use getBlockSize().

The block size of the cipher.

 o dataSize
 public int dataSize
Note: dataSize is deprecated. Use getDataSize().

The size of the data passed to the cipher.

Constructors

 o IllegalBlockSizeException
 public IllegalBlockSizeException(String message)
Constructs an IllegalBlockSizeException with the specified detail message. A detail message is a String that describes this particular exception.

Parameters:
message - the detail message.
 o 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.

Parameters:
blockSize - the block size of the cipher.
dataSize - the illegal size of the data passed to the cipher.
 o IllegalBlockSizeException
 public IllegalBlockSizeException(int blockSize,
                                  int dataSize,
                                  String message)
Constructs an IllegalBlockSizeException with the specified block size, illegal data size, and detail message.

This constructor is not supported in JavaSoft's version of JCE.

Parameters:
blockSize - the block size of the cipher.
dataSize - the illegal size of the data passed to the cipher.
message - the detail message.

Methods

 o getBlockSize
 public int getBlockSize()
Gets the block size of the cipher (or 0 if this was not set).

This method is not supported in JavaSoft's version of JCE.

 o getDataSize
 public int getDataSize()
Gets the size of the data passed to the cipher (or 0 if this was not set).

This method is not supported in JavaSoft's version of JCE.


All Packages  Class Hierarchy  This Package  Previous  Next  Index