Class KeyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.fherbreteau.vodozemac.exception.VodozemacException
io.github.fherbreteau.vodozemac.exception.KeyException
- All Implemented Interfaces:
Serializable
Thrown when decoding or validating a cryptographic key fails.
This includes failures due to:
- Invalid base64 encoding of a key
- Incorrect key length (keys must be 32 bytes for encryption operations)
- Invalid Curve25519 or Ed25519 public key data
- Session key or exported session key decoding failures
- Author:
- François HERBRETEAU
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionKeyException(String message) Constructs a newKeyExceptionwith the specified detail message.KeyException(String message, Throwable cause) Constructs a newKeyExceptionwith the specified detail message and a cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
KeyException
Constructs a newKeyExceptionwith the specified detail message.- Parameters:
message- the detail message
-
KeyException
-