31 lines
684 B
Java
31 lines
684 B
Java
package com.svlada.security.exceptions;
|
|
|
|
import org.springframework.security.core.AuthenticationException;
|
|
|
|
import com.svlada.security.model.token.JwtToken;
|
|
|
|
/**
|
|
*
|
|
* @author vladimir.stankovic
|
|
*
|
|
* Aug 3, 2016
|
|
*/
|
|
public class JwtExpiredTokenException extends AuthenticationException {
|
|
private static final long serialVersionUID = -5959543783324224864L;
|
|
|
|
private JwtToken token;
|
|
|
|
public JwtExpiredTokenException(String msg) {
|
|
super(msg);
|
|
}
|
|
|
|
public JwtExpiredTokenException(JwtToken token, String msg, Throwable t) {
|
|
super(msg, t);
|
|
this.token = token;
|
|
}
|
|
|
|
public String token() {
|
|
return this.token.getToken();
|
|
}
|
|
}
|