in src/main/java/org/apache/sling/auth/saml2/impl/AuthenticationHandlerSAML2Impl.java [744:759]
boolean needsRefresh(final String authData) {
boolean updateCookie = false;
if (authData == null) {
updateCookie = true;
} else {
String[] parts = TokenStore.split(authData);
if (parts != null && parts.length == 3) {
long cookieTime = Long.parseLong(parts[1].substring(1));
long timeNow = System.currentTimeMillis();
if (timeNow > cookieTime) {
updateCookie = true;
}
}
}
return updateCookie;
}