nerdexam
GIAC

GSSP-JAVA · Question #178

Which of the following exceptions will be thrown if a cipher is in decryption mode but the decrypted data is not bounded by the appropriate bytes?

The correct answer is D. BadPaddingException. See the full explanation below for the reasoning.

Question

Which of the following exceptions will be thrown if a cipher is in decryption mode but the decrypted data is not bounded by the appropriate bytes?

Options

  • AIllegalArgumentException
  • BShortBufferException
  • CReadOnlyException
  • DBadPaddingException

How the community answered

(30 responses)
  • A
    3% (1)
  • B
    7% (2)
  • C
    17% (5)
  • D
    73% (22)

Community Discussion

No community discussion yet for this question.

Full GSSP-JAVA Practice