fengxiang
2018-02-01 cd16757f2cd963749850d6f8897381a8b7a849ef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.moral.security.exceptions;
 
import com.moral.security.model.token.JwtToken;
import org.springframework.security.core.AuthenticationException;
 
/**
 * 
 * @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();
    }
}