}
// object number 4
{
ObjectContainer object = new ObjectContainer(doc);
SignatureProperties sps = new SignatureProperties(doc);
sps.setId("signature-properties-1");
SignatureProperty sp = new SignatureProperty(doc, "#signature");
Element signedAdress = doc.createElementNS("urn:demo", "SignedAddress");
signedAdress.setAttributeNS(Constants.NamespaceSpecNS, "xmlns", "urn:demo");
Element IP = doc.createElementNS("urn:demo", "IP");
IP.appendChild(doc.createTextNode("192.168.21.138"));
signedAdress.appendChild(IP);
sp.appendChild(signedAdress);
sps.addSignatureProperty(sp);
object.appendChild(sps.getElement());
sig.appendObject(object);
}
{
ObjectContainer object = new ObjectContainer(doc);