javax.crypto
Class BadPaddingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.security.GeneralSecurityException
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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.