use of com.sun.identity.saml2.protocol.IDPList in project OpenAM by OpenRock.
the class ScopingImpl method parseElement.
private void parseElement(Element element) throws SAML2Exception {
String proxyCountStr = element.getAttribute("ProxyCount");
if (proxyCountStr != null && proxyCountStr.length() > 0) {
proxyCount = new Integer(proxyCountStr);
validateProxyCount(proxyCount);
}
NodeList nList = element.getChildNodes();
if ((nList != null) && (nList.getLength() > 0)) {
if (requesterIDList == null) {
requesterIDList = new ArrayList<RequesterID>();
}
for (int i = 0; i < nList.getLength(); i++) {
Node childNode = nList.item(i);
String cName = childNode.getLocalName();
if (cName != null) {
if (cName.equals(SAML2Constants.IDPLIST)) {
validateIDPList();
idpList = ProtocolFactory.getInstance().createIDPList((Element) childNode);
} else if (cName.equals(SAML2Constants.REQUESTERID)) {
RequesterID reqID = ProtocolFactory.getInstance().createRequesterID((Element) childNode);
requesterIDList.add(reqID);
}
}
}
if (requesterIDList != null && !requesterIDList.isEmpty()) {
requesterIDList = Collections.unmodifiableList(requesterIDList);
}
}
}
Aggregations