## Uses of Class
javax.crypto.BadPaddingException

- Packages that use BadPaddingException
  Package | Description
  --- | ---
  javax.crypto | Provides the classes and interfaces for cryptographic operations.

- - ### Uses of BadPaddingException in javax.crypto

    Subclasses of BadPaddingException in javax.crypto
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `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.

    Methods in javax.crypto that throw BadPaddingException
    Modifier and Type | Method | Description
    --- | --- | ---
    `byte[]` | Cipher.`doFinal​()` | Finishes a multiple-part encryption or decryption operation, depending on how this cipher was initialized.
    `byte[]` | Cipher.`doFinal​(byte[] input)` | Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.
    `int` | Cipher.`doFinal​(byte[] output, int outputOffset)` | Finishes a multiple-part encryption or decryption operation, depending on how this cipher was initialized.
    `byte[]` | Cipher.`doFinal​(byte[] input, int inputOffset, int inputLen)` | Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.
    `int` | Cipher.`doFinal​(byte[] input, int inputOffset, int inputLen, byte[] output)` | Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.
    `int` | Cipher.`doFinal​(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)` | Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.
    `int` | Cipher.`doFinal​(ByteBuffer input, ByteBuffer output)` | Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.
    `protected abstract byte[]` | CipherSpi.`engineDoFinal​(byte[] input, int inputOffset, int inputLen)` | Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.
    `protected abstract int` | CipherSpi.`engineDoFinal​(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)` | Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.
    `protected int` | CipherSpi.`engineDoFinal​(ByteBuffer input, ByteBuffer output)` | Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.
    `Object` | SealedObject.`getObject​(Cipher c)` | Retrieves the original (encapsulated) object.