springboot-security-jwt/src/main/java/com/svlada/security/exceptions/JwtExpiredTokenException.java

31 lines
678 B
Java
Raw Normal View History

2016-08-04 22:47:31 +08:00
package com.svlada.security.exceptions;
import org.springframework.security.core.AuthenticationException;
import com.svlada.security.model.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();
}
}