Name
BadPaddingException
Synopsis
Signals
that input data to a Cipher
is not padded
correctly.
Figure 17-1. javax.crypto.BadPaddingException
public class BadPaddingException extends java.security.GeneralSecurityException { // Public Constructors public BadPaddingException( ); public BadPaddingException(String msg); }
Thrown By
Cipher.doFinal( )
,
CipherSpi.engineDoFinal( )
,
SealedObject.getObject( )
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.