View Javadoc

1   package com.atlassian.asap.core.exception;
2   
3   import com.atlassian.asap.api.exception.InvalidTokenException;
4   
5   import java.time.Instant;
6   
7   /**
8    * Thrown if the token timestamps show that it has expired.
9    */
10  public class TokenExpiredException extends InvalidTokenException {
11      public TokenExpiredException(Instant expiredAt, Instant now) {
12          super(String.format("Expired at %s and time is now %s", expiredAt, now));
13      }
14  }