//Load the config if PolicyConfig is empty
if(this.appConfigs.size() == 0)
this.loadConfig();
AppConfigurationEntry[] entry = null;
ApplicationPolicy aPolicy = this.getApplicationPolicy(appName);
AuthenticationInfo authInfo = null;
if(aPolicy != null)
{
BaseAuthenticationInfo bai = aPolicy.getAuthenticationInfo();
if(bai instanceof AuthenticationInfo)
authInfo = (AuthenticationInfo)bai;
}
if (authInfo == null)
{
if (log.isTraceEnabled())
log.trace("getAppConfigurationEntry("+appName+"), no entry in appConfigs, tyring parentCont: "+parentConfig);
if (parentConfig != null)
entry = parentConfig.getAppConfigurationEntry(appName);
if (entry == null)
{
if (log.isTraceEnabled())
log.trace("getAppConfigurationEntry("+appName+"), no entry in parentConfig, trying: "+DEFAULT_APP_CONFIG_NAME);
}
ApplicationPolicy defPolicy = (ApplicationPolicy)appConfigs.get(DEFAULT_APP_CONFIG_NAME);
authInfo = defPolicy != null ?(AuthenticationInfo) defPolicy.getAuthenticationInfo() : null;
}
if (authInfo != null)
{
if (log.isTraceEnabled())