}
private void initRealms() throws Exception
{
// first, configure the realms based on the server.xml config file.
JipRealms realms = config.getRealms();
if (realms == null)
{
return;
}
int cache_period = realms.getAuthCachePeriod().intValue();
if (cache_period > 0)
{
authCachePeriod = cache_period * 1000L;
}
authOnLogout = realms.isAuthOnLogout();
Iterator iter = realms.getRealm().iterator();
while (iter.hasNext() == true)
{
JipRealm realm = (JipRealm) iter.next();
startRealm(realm, null, null);
}