Class KeyException

All Implemented Interfaces:
Serializable

public class KeyException extends VodozemacException
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 Details

    • KeyException

      public KeyException(String message)
      Constructs a new KeyException with the specified detail message.
      Parameters:
      message - the detail message
    • KeyException

      public KeyException(String message, Throwable cause)
      Constructs a new KeyException with the specified detail message and a cause.
      Parameters:
      message - the detail message
      cause - the cause