setSingleSignOnForChildren(sso);
addValve((GlassFishValve) sso);
}
// set max idle time if given
Property idle = vsBean.getProperty(SSO_MAX_IDLE);
if (idle != null && idle.getValue() != null) {
if (_logger.isLoggable(Level.FINE)) {
_logger.fine("SSO entry max idle time set to: " +
idle.getValue() + " for virtual server " +
getID());
}
sso.setMaxInactive(Integer.parseInt(idle.getValue()));
}
// set expirer thread sleep time if given
Property expireTime = vsBean.getProperty(SSO_REAP_INTERVAL);
if (expireTime !=null && expireTime.getValue() != null) {
if (_logger.isLoggable(Level.FINE)) {
_logger.fine("SSO expire thread interval set to: " +
expireTime.getValue() +
" for virtual server " + getID());
}
sso.setReapInterval(Integer.parseInt(expireTime.getValue()));
}
configureSingleSignOnCookieSecure();
configureSingleSignOnCookieHttpOnly();
}