Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0.2-incubating
-
None
Description
public boolean hasTokenExpired() {
return tokenExpireTime.before(new Date());
}
should be changed to:
public boolean hasTokenExpired() {
return tokenExpireTime == null
? false
: tokenExpireTime.before(new Date());
}
A token set to null should never expire to be consistent with the behavior that a token will always be vaild valid (in checkToken method) if it is null.