"exp" field was wrongly returned as string instead of Long
This commit is contained in:
parent
65e2882c2f
commit
a8f328cf56
|
@ -75,12 +75,12 @@ public class JWTToken implements Serializable {
|
||||||
return payload;
|
return payload;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getExp() {
|
public Long getExp() {
|
||||||
return (String) getPayload().get("exp");
|
return (Long) getPayload().get("exp");
|
||||||
}
|
}
|
||||||
|
|
||||||
public Date getExpAsDate() {
|
public Date getExpAsDate() {
|
||||||
return new Date(Long.getLong(getExp()) * 1000);
|
return new Date(getExp() * 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Calendar getExpAsCalendar() {
|
public Calendar getExpAsCalendar() {
|
||||||
|
|
Loading…
Reference in New Issue