return aPolicy.getAuthorizationInfo();
}
private AuthorizationInfo getAuthorizationInfo(ResourceType layer)
{
AuthorizationInfo ai = null;
if (layer == ResourceType.EJB)
ai = SecurityConfiguration.getApplicationPolicy(EJB).getAuthorizationInfo();
else if (layer == ResourceType.WEB)
ai = SecurityConfiguration.getApplicationPolicy(WEB).getAuthorizationInfo();
else
{
if (log.isTraceEnabled())
log.trace("AuthorizationInfo not found. Providing default authorization info");
ai = new AuthorizationInfo(SecurityConstants.DEFAULT_APPLICATION_POLICY);
ai.add(new AuthorizationModuleEntry(DelegatingAuthorizationModule.class.getName()));
}
return ai;
}