String host = null;
String principal = null;
final Target target = getTarget(targetName);
// check1ToN(target);
SecurityService securityService = getSecurityServiceConfigBean(target.getConfigTarget().getName());
for (int i = 0; i <attrList.size(); i++) {
Attribute attr = (Attribute)attrList.get(i);
if (isAttrNameMatch(attr, "id"))
id = (String)attr.getValue();
else if (isAttrNameMatch(attr, "trusted-as"))
trustedAs = (String)attr.getValue();
else if (isAttrNameMatch(attr, "ip-address"))
ipAdd = (String)attr.getValue();
else if (isAttrNameMatch(attr, "host-name"))
host = (String)attr.getValue();
else if (isAttrNameMatch(attr, "principal"))
principal = (String)attr.getValue();
}
IdentityAssertionTrust trustConfig =
securityService.getIdentityAssertionTrustById(trustId);
// invalid trustId was specified
if (trustConfig == null)
{
String msg = _strMgr.getString("IdentityTrustDoesntExist", trustId);
throw new MBeanConfigException(msg);