throw new IllegalStateException("Authorization Info is null");
AuthorizationModuleEntry[] entries = authzInfo.getAuthorizationModuleEntry();
int len = entries != null ? entries.length : 0;
for(int i = 0 ; i < len; i++)
{
AuthorizationModuleEntry entry = entries[i];
AuthorizationModuleEntry.ControlFlag flag = entry.getControlFlag();
if(flag == null)
{
if(trace)
log.trace("Null Control flag for entry:"+entry+". Defaults to REQUIRED!");
flag = AuthorizationModuleEntry.ControlFlag.REQUIRED;
}
else
if(trace)
log.trace("Control flag for entry:"+entry+"is:["+flag+"]");
this.controlFlags.add(flag);
modules.add(instantiateModule(entry.getPolicyModuleName(), entry.getOptions()));
}
}