/** * Constructor AssertionWrapper creates a new AssertionWrapper instance. * * @param element of type Element * @throws UnmarshallingException when */ public AssertionWrapper(Element element) throws WSSecurityException { OpenSAMLUtil.initSamlEngine(); parseElement(element); fromDOM = true; }
/** * Constructor AssertionWrapper creates a new AssertionWrapper instance. * * @param element of type Element * @throws UnmarshallingException when */ public AssertionWrapper(Element element) throws WSSecurityException { OpenSAMLUtil.initSamlEngine(); parseElement(element); fromDOM = true; }
/** * Create a DOM from the current XMLObject content. If the user-supplied doc is not null, * reparent the returned Element so that it is compatible with the user-supplied document. * * @param doc of type Document * @return Element */ public Element toDOM(Document doc) throws WSSecurityException { if (fromDOM && assertionElement != null) { parseElement(assertionElement); if (doc != null) { return (Element)doc.importNode(assertionElement, true); } return assertionElement; } assertionElement = OpenSAMLUtil.toDom(xmlObject, doc); return assertionElement; }
/** * Create a DOM from the current XMLObject content. If the user-supplied doc is not null, * reparent the returned Element so that it is compatible with the user-supplied document. * * @param doc of type Document * @return Element */ public Element toDOM(Document doc) throws WSSecurityException { if (fromDOM && assertionElement != null) { parseElement(assertionElement); if (doc != null) { return (Element)doc.importNode(assertionElement, true); } return assertionElement; } assertionElement = OpenSAMLUtil.toDom(xmlObject, doc); return assertionElement; }
parseElement(samlCallbacks[0].getAssertionElement()); fromDOM = true; } else {
parseElement(samlCallbacks[0].getAssertionElement()); fromDOM = true; } else {