Added in API level 1

BadPaddingException

open class BadPaddingException : GeneralSecurityException
AEADBadTagException

This exception is thrown when a Cipher operating in an AEAD mode (such as GCM/CCM) is unable to verify the supplied authentication tag.

This exception is thrown when a particular padding mechanism is expected for the input data but the data is not padded properly.

Summary

Public constructors

Constructs a BadPaddingException with no detail message.

Constructs a BadPaddingException with the specified detail message.

Public constructors

BadPaddingException

Added in API level 1
BadPaddingException()

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

BadPaddingException

Added in API level 1
BadPaddingException(msg: String!)

Constructs a BadPaddingException with the specified detail message.

Parameters
msg String!: the detail message.