Class ScramInterruptedException

All Implemented Interfaces:
Serializable

public class ScramInterruptedException extends ScramRuntimeException
Thrown when a SCRAM authentication process is interrupted, typically during CPU-intensive PBKDF2 computation.

This class serves as a ScramRuntimeException wrapper for an interruption signal. It is primarily used during cryptographic operations where a checked InterruptedException cannot be propagated directly due to API or functional interface constraints.

Since:
3.3
See Also:
  • Field Details

  • Constructor Details

    • ScramInterruptedException

      public ScramInterruptedException(String detail)
      Constructs a new ScramInterruptedException with the specified detail message.
      Parameters:
      detail - the detail message explaining the context of the interruption.
    • ScramInterruptedException

      public ScramInterruptedException(String detail, Throwable ex)
      Constructs a new ScramInterruptedException with the specified detail message and the underlying cause.
      Parameters:
      detail - the detail message explaining the context.
      ex - the cause (which is saved for later retrieval by the Throwable.getCause() method).