protected void reshuffleTimestamp() { // Make sure that the Timestamp is in first place, if that is what the policy requires if (binding.getLayout() != null && timestampEl != null) { if (binding.getLayout().getLayoutType() == LayoutType.LaxTsFirst && secHeader.getSecurityHeaderElement().getFirstChild() != timestampEl.getElement()) { Node firstChild = secHeader.getSecurityHeaderElement().getFirstChild(); while (firstChild != null && firstChild.getNodeType() != Node.ELEMENT_NODE) { firstChild = firstChild.getNextSibling(); } if (firstChild != null && firstChild != timestampEl.getElement()) { secHeader.getSecurityHeaderElement().insertBefore(timestampEl.getElement(), firstChild); } } else if (binding.getLayout().getLayoutType() == LayoutType.LaxTsLast && secHeader.getSecurityHeaderElement().getLastChild() != timestampEl.getElement()) { secHeader.getSecurityHeaderElement().appendChild(timestampEl.getElement()); } } }
protected void reshuffleTimestamp() { // Make sure that the Timestamp is in first place, if that is what the policy requires if (binding.getLayout() != null && timestampEl != null) { if (binding.getLayout().getLayoutType() == LayoutType.LaxTsFirst && secHeader.getSecurityHeaderElement().getFirstChild() != timestampEl.getElement()) { Node firstChild = secHeader.getSecurityHeaderElement().getFirstChild(); while (firstChild != null && firstChild.getNodeType() != Node.ELEMENT_NODE) { firstChild = firstChild.getNextSibling(); } if (firstChild != null && firstChild != timestampEl.getElement()) { secHeader.getSecurityHeaderElement().insertBefore(timestampEl.getElement(), firstChild); } } else if (binding.getLayout().getLayoutType() == LayoutType.LaxTsLast && secHeader.getSecurityHeaderElement().getLastChild() != timestampEl.getElement()) { secHeader.getSecurityHeaderElement().appendChild(timestampEl.getElement()); } } }
WSEncryptionPart timestampPart = new WSEncryptionPart("Timestamp", WSS4JConstants.WSU_NS, "Element"); String id = addWsuIdToElement(timestampEl.getElement()); timestampPart.setId(id); timestampPart.setElement(timestampEl.getElement());
WSEncryptionPart timestampPart = new WSEncryptionPart("Timestamp", WSS4JConstants.WSU_NS, "Element"); String id = addWsuIdToElement(timestampEl.getElement()); timestampPart.setId(id); timestampPart.setElement(timestampEl.getElement());
new QName(binding.getLayout().getName().getNamespaceURI(), SPConstants.LAYOUT_LAX_TIMESTAMP_LAST)); Element el = timestamp.getElement(); secHeader.getSecurityHeaderElement().appendChild(el); if (bottomUpElement == null) { ai.setNotAsserted(SPConstants.LAYOUT_LAX_TIMESTAMP_FIRST + " requires a timestamp"); } else { addTopDownElement(timestampEl.getElement()); ai.setAsserted(true); assertPolicy( ai.setAsserted(true); addTopDownElement(timestampEl.getElement()); } else if (ai != null) { ai.setAsserted(true); new QName(binding.getLayout().getName().getNamespaceURI(), SPConstants.LAYOUT_STRICT)); } else if (timestampEl != null) { addTopDownElement(timestampEl.getElement());
new QName(binding.getLayout().getName().getNamespaceURI(), SPConstants.LAYOUT_LAX_TIMESTAMP_LAST)); Element el = timestamp.getElement(); secHeader.getSecurityHeaderElement().appendChild(el); if (bottomUpElement == null) { ai.setNotAsserted(SPConstants.LAYOUT_LAX_TIMESTAMP_FIRST + " requires a timestamp"); } else { addTopDownElement(timestampEl.getElement()); ai.setAsserted(true); assertPolicy( ai.setAsserted(true); addTopDownElement(timestampEl.getElement()); } else if (ai != null) { ai.setAsserted(true); new QName(binding.getLayout().getName().getNamespaceURI(), SPConstants.LAYOUT_STRICT)); } else if (timestampEl != null) { addTopDownElement(timestampEl.getElement());
if (timestampEl != null) { WSEncryptionPart timestampPart = convertToEncryptionPart(timestampEl.getElement()); sigParts.add(timestampPart);
if (timestampEl != null) { WSEncryptionPart timestampPart = convertToEncryptionPart(timestampEl.getElement()); sigParts.add(timestampPart);
if (timestampEl != null) { WSEncryptionPart timestampPart = convertToEncryptionPart(timestampEl.getElement()); sigParts.add(timestampPart);
WSEncryptionPart timestampPart = convertToEncryptionPart(timestampEl.getElement()); sigs.add(timestampPart);
if (timestampEl != null) { WSEncryptionPart timestampPart = convertToEncryptionPart(timestampEl.getElement()); sigParts.add(timestampPart);
WSEncryptionPart timestampPart = convertToEncryptionPart(timestampEl.getElement()); sigs.add(timestampPart);
if (timestampEl != null) { WSEncryptionPart timestampPart = convertToEncryptionPart(timestampEl.getElement()); sigs.add(timestampPart);
if (timestampEl != null) { WSEncryptionPart timestampPart = convertToEncryptionPart(timestampEl.getElement()); sigs.add(timestampPart);