private boolean processIdentityTrust(String securityDomain, ModelNode node, ApplicationPolicy applicationPolicy) {
node = peek(node, IDENTITY_TRUST, CLASSIC);
if (node == null)
return false;
IdentityTrustInfo identityTrustInfo = new IdentityTrustInfo(securityDomain);
List<ModelNode> modules = node.get(TRUST_MODULES).asList();
for (ModelNode module : modules) {
String codeName = module.require(CODE).asString();
ControlFlag controlFlag = ControlFlag.valueOf(module.require(FLAG).asString());
Map<String, Object> options = extractOptions(module);
IdentityTrustModuleEntry entry = new IdentityTrustModuleEntry(codeName, options);
entry.setControlFlag(controlFlag);
identityTrustInfo.add(entry);
String moduleName = module.get(MODULE).asString();
if(module.hasDefined(MODULE) && moduleName != null && moduleName.length() > 0 ) {
identityTrustInfo.setJBossModuleName(moduleName);
}
}
applicationPolicy.setIdentityTrustInfo(identityTrustInfo);
return true;
}