Esempio n. 1
0
 protected void fill(SecurityToken aSecurityToken, Node aNode) {
   if ("BinarySecurityToken".equalsIgnoreCase(aNode.getLocalName())) {
     NodeList children = aNode.getChildNodes();
     if (children.getLength() > 0)
       aSecurityToken.setBinarySecurityToken(children.item(0).getNodeValue());
   } else if ("Created".equalsIgnoreCase(aNode.getLocalName())) {
     NodeList children = aNode.getChildNodes();
     if (children.getLength() > 0)
       aSecurityToken.setIssueDate(parseDate(children.item(0).getNodeValue()));
   } else if ("Expires".equalsIgnoreCase(aNode.getLocalName())) {
     NodeList children = aNode.getChildNodes();
     if (children.getLength() > 0)
       aSecurityToken.setExpireDate(parseDate(children.item(0).getNodeValue()));
   } else if (aNode.hasChildNodes()) {
     NodeList list = aNode.getChildNodes();
     for (int i = 0; i < list.getLength(); i++) fill(aSecurityToken, list.item(i));
   }
 }