for (int k = 0; k < roleNames.length; k++) {
configuration.addToRole(roleNames[k].getStringValue(), permission);
}
}
} catch (PolicyContextException e) {
throw new GeronimoSecurityException(e);
}
}
}
/**
* Section 3.1.5.2
*/
if (excludeList != null) {
MethodType[] methods = excludeList.getMethodArray();
try {
for (int i = 0; i < methods.length; i++) {
EJBMethodPermission permission = new EJBMethodPermission(methods[i].getEjbName().getStringValue(),
methods[i].getMethodName().getStringValue(),
methods[i].getMethodIntf().getStringValue(),
toStringArray(methods[i].getMethodParams().getMethodParamArray()));
configuration.addToExcludedPolicy(permission);
}
} catch (PolicyContextException e) {
throw new GeronimoSecurityException(e);
}
}
/**
* Section 3.1.5.3