Package javax.crypto
Class BadPaddingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.security.GeneralSecurityException
javax.crypto.BadPaddingException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AEADBadTagException
public class BadPaddingException extends GeneralSecurityException
The exception that is thrown when a padding mechanism is expected for the
input data, but the input data does not have the proper padding bytes.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description BadPaddingException()Creates a new instance ofBadPaddingExceptionwith no message.BadPaddingException(String msg)Creates a new instance ofBadPaddingExceptionwith a message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BadPaddingException
Creates a new instance ofBadPaddingExceptionwith a message.- Parameters:
msg- the message
-
BadPaddingException
public BadPaddingException()Creates a new instance ofBadPaddingExceptionwith no message.
-