Package com.babelqueue.gdpr
Class MalformedCiphertextException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.security.GeneralSecurityException
com.babelqueue.gdpr.MalformedCiphertextException
- All Implemented Interfaces:
Serializable
Thrown by
AesGcmCipher.decrypt(String) when the input is not valid Base64 or is too
short to contain an IV — i.e. not something this cipher produced. It extends
GeneralSecurityException so it fits the Cipher contract's checked-exception
surface, and Gdpr.unprotect(java.util.Map<java.lang.String, java.lang.Object>, java.util.Map<java.lang.String, java.lang.Object>, com.babelqueue.gdpr.Cipher) surfaces it (like any decrypt failure) as a
DecryptException.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MalformedCiphertextException
- Parameters:
reason- why the ciphertext is malformedcause- the underlying cause, ornull
-