/** * Tests that the token is not expired and is not-before. * * @return */ @JsonIgnore public boolean isActive() { return isActive(0); }
@Override public boolean test(JsonWebToken t) throws VerificationException { if (! t.isActive()) { throw new TokenNotActiveException(t, "Token is not active"); } return true; } };
if (!token.isActive()) { throw new IdentityBrokerException("Token is no longer valid");