Class ExpiredNonceException

All Implemented Interfaces:
Serializable

public class ExpiredNonceException extends AuthenticationException

Thrown by a DigestCredentialsMatcher to indicate that the provided nonce has expired.

This exception should be intercepted by a DigestAuthenticationErrorInterceptor to send with a stale response to the client as defined by RFC 7616 section 3.3.

Since:
1.5
Author:
Jeremy Kuhn
See Also:
  • Constructor Details

    • ExpiredNonceException

      public ExpiredNonceException()

      Creates an expired nonce exception.

    • ExpiredNonceException

      public ExpiredNonceException(String message)

      Creates an expired nonce exception with the specified message.

      Parameters:
      message - the message
    • ExpiredNonceException

      public ExpiredNonceException(Throwable cause)

      Creates an expired nonce exception with the specified cause.

      Parameters:
      cause - the cause
    • ExpiredNonceException

      public ExpiredNonceException(String message, Throwable cause)

      Creates an expired nonce exception with the specified message and cause.

      Parameters:
      message - the message
      cause - the cause
    • ExpiredNonceException

      public ExpiredNonceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)

      Creates an expired nonce exception with the specified message, cause, suppression enabled or disabled and writable stack trace enabled or disabled.

      Parameters:
      message - the message
      cause - the cause
      enableSuppression - true to enable suppression, false otherwise
      writableStackTrace - true to make the stack trace writable, false otherwise