Class KeyAccessException

All Implemented Interfaces:
Serializable

public class KeyAccessException extends IllegalStateException
Exception indicating that key infrastructure is unavailable.

This exception signals that the encryption or decryption operation could not proceed because the key management system or key provider is not accessible. This is a transient state failure — the operation may succeed if retried later.

Important: Never quarantine the encrypted data when this exception occurs. The inability to access keys is a temporary infrastructure issue, not a data validation failure. Encrypted data should be retained for retry.

See Also:
  • Constructor Details

    • KeyAccessException

      public KeyAccessException(String message, Throwable cause)
      Creates a key-infrastructure availability failure.
      Parameters:
      message - what was unavailable
      cause - the provider's failure, preserved for diagnosis