javax.crypto
Class BadPaddingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.security.GeneralSecurityException
              extended by javax.crypto.BadPaddingException
All Implemented Interfaces:
Serializable

public class BadPaddingException
extends GeneralSecurityException

This exception is thrown during decryption when the decrypted input does not have the proper padding bytes that are expected by the padding mechanism.

See Also:
Serialized Form

Constructor Summary
BadPaddingException()
          Creates a new bad padding exception with no detail message.
BadPaddingException(String message)
          Creates a new bad padding exception with a detail message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BadPaddingException

public BadPaddingException()
Creates a new bad padding exception with no detail message.


BadPaddingException

public BadPaddingException(String message)
Creates a new bad padding exception with a detail message.

Parameters:
message - The detail message.