javax.crypto

Class BadPaddingException

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.
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.

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.