Top Description Fields Constructors
javax.crypto

public Class BadPaddingException

extends GeneralSecurityException
Class Inheritance
Known Direct Subclasses
javax.crypto.AEADBadTagException
Imports
java.security.GeneralSecurityException

This exception is thrown when a particular padding mechanism is expected for the input data but the data is not padded properly.
Author
Gigi Ankney
Since
1.4

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
BadPaddingException()

Constructs a BadPaddingException with no detail message.

public
BadPaddingException(String
the detail message.
msg
)

Constructs a BadPaddingException with the specified detail message.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.security.GeneralSecurityException.serialVersionUID.

Annotations
@Serial

Constructor Detail

BadPaddingExceptionback to summary
public BadPaddingException()

Constructs a BadPaddingException with no detail message. A detail message is a String that describes this particular exception.

BadPaddingExceptionback to summary
public BadPaddingException(String msg)

Constructs a BadPaddingException with the specified detail message.

Parameters
msg:String

the detail message.