Package javax.crypto

Class 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 Details

    • BadPaddingException

      public BadPaddingException​(String msg)
      Creates a new instance of BadPaddingException with a message.
      Parameters:
      msg - the message
    • BadPaddingException

      public BadPaddingException()
      Creates a new instance of BadPaddingException with no message.