public class XSManifest extends ReferenceList implements Referable
Typically, a Manifest will be enclosed in a XML-DSIG Object element, and then targeted by a Reference in the SignedInfo structure.
Note that the reference validation process executed during core signature validation (XSSignature.verify(PublicKey)
) will only verify the digest on the Manifest itself, not the digests of the References contained in the Manifest. To validate nested Manifest references, use the method XSSignature.verify(PublicKey, boolean)
and pass true
for the valideManifests
argument.
XSSignature.createManifest()
, XSSignedInfo
, XSReference
, XSObject
Constructor and Description |
---|
XSManifest(org.w3c.dom.Document owner)
Create a new
XSManifest instance. |
XSManifest(org.w3c.dom.Document owner, java.lang.String id)
Create a new
XSManifest instance. |
XSManifest(org.w3c.dom.Element element)
Creates a new
XSManifest instance. |
XSManifest(org.w3c.dom.Element element, java.lang.String systemId)
Creates a new
XSManifest instance. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getType()
Returns the URI defined in the XML-DSIG space to identify the Manifest element ("http://www.w3.org/2000/09/xmldsig#Manifest").
|
addReference, computeRefDigests, getId, getPreDigestedData, getReferences, getSignatureDetails, getValidationErrorMessage, setId, validateRefDigests
addNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefix
appendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXML
public XSManifest(org.w3c.dom.Element element) throws org.w3c.dom.DOMException
XSManifest
instance. from the given Element node.element
- An Element node in the XML document that conforms to the XML-DSIG Manifest schema.org.w3c.dom.DOMException
public XSManifest(org.w3c.dom.Element element, java.lang.String systemId) throws org.w3c.dom.DOMException
XSManifest
instance. from the given Element node.element
- An Element node in the XML document that conforms to the XML-DSIG Manifest schema.systemId
- The URI string system ID for this element.org.w3c.dom.DOMException
XMLNode.setSystemId(java.lang.String)
public XSManifest(org.w3c.dom.Document owner) throws org.w3c.dom.DOMException
XSManifest
instance.owner
- The owner document of the new XSManifest
org.w3c.dom.DOMException
public XSManifest(org.w3c.dom.Document owner, java.lang.String id)
XSManifest
instance.owner
- The owner document of the new XSManifest
id
- An optional string ID name for this Manifest structure.