/** @see gov.nih.gov.nih.nci.cagrid.opensaml.SAMLObject#toDOM(org.w3c.dom.Document,boolean) */ public Node toDOM(Document doc, boolean xmlns) throws SAMLException { // Let the base build/verify the DOM root. super.toDOM(doc, xmlns); if (dirty) { ((Element) root).appendChild(subject.toDOM(doc)); } return root; }
/** @see gov.nih.gov.nih.nci.cagrid.opensaml.SAMLObject#fromDOM(org.w3c.dom.Element) */ public void fromDOM(Element e) throws SAMLException { super.fromDOM(e); // Extract subject. subject = (SAMLSubject) new SAMLSubject(XML.getFirstChildElement(e)).setParent(this); }