Name

IllegalBlockSizeException

Synopsis

Signals that the length of data provided to a block cipher (as implemented, for example, by Cipher and SealedObject) does not match the block size for the cipher.

javax.crypto.IllegalBlockSizeException

Figure 17-5. javax.crypto.IllegalBlockSizeException

public class IllegalBlockSizeException extends java.security.GeneralSecurityException {
// Public Constructors
     public IllegalBlockSizeException( );  
     public IllegalBlockSizeException(String msg);  
}

Thrown By

Cipher.{doFinal( ), wrap( )}, CipherSpi.{engineDoFinal( ), engineWrap( )}, SealedObject.{getObject( ), SealedObject( )}

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.