public abstract class ReferenceList
extends oracle.security.xmlsec.util.XMLElement
| Modifier | Constructor and Description |
|---|---|
protected |
ReferenceList(org.w3c.dom.Document owner,
java.lang.String tagName)
Creates a new
ReferenceList instance. |
protected |
ReferenceList(org.w3c.dom.Document owner,
java.lang.String tagName,
java.lang.String id)
Creates a new
ReferenceList instance. |
protected |
ReferenceList(org.w3c.dom.Element element)
Creates a new
ReferenceList instance. |
protected |
ReferenceList(org.w3c.dom.Element element,
java.lang.String systemId)
Creates a new
ReferenceList instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
addReference(XSReference ref)
Adds a Reference to this
ReferenceList. |
void |
computeRefDigests()
Computes the digest of each Reference in this
ReferenceList. |
java.lang.String |
getId()
Returns the string value of the Id attribute of this
ReferenceList, or
null if the attribute is missing. |
java.util.ArrayList<byte[]> |
getPreDigestedData()
Return the pre Digested data for every reference.
|
java.util.Vector |
getReferences()
Returns a list of the References for this
ReferenceList. |
java.lang.StringBuilder |
getSignatureDetails()
Return the digested data for signature and references.
|
java.lang.StringBuilder |
getValidationErrorMessage()
Return the digested data and related details for failed reference.
|
void |
setId(java.lang.String id)
Sets the Id attribute of this
ReferenceList. |
boolean |
validateRefDigests(boolean validateManifests)
Validates the digest of each Reference in this
ReferenceList. |
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, setDefaultNSPrefixappendChild, 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, toStringXMLprotected ReferenceList(org.w3c.dom.Element element)
throws org.w3c.dom.DOMException
ReferenceList instance.
from the given Element node.element - An Element node in the XML document.org.w3c.dom.DOMExceptionprotected ReferenceList(org.w3c.dom.Element element,
java.lang.String systemId)
throws org.w3c.dom.DOMException
ReferenceList instance.
from the given Element node.element - An Element node in the XML document.systemId - The URI string system ID for this element.org.w3c.dom.DOMExceptionXMLNode.setSystemId(java.lang.String)protected ReferenceList(org.w3c.dom.Document owner,
java.lang.String tagName)
throws org.w3c.dom.DOMException
ReferenceList instance.owner - The owner document of the new ReferenceList.tagName - The name of the element to be created; for example, "SignedInfo"
if this ReferenceList is to be a XML-DSIG
SignedInfo element.org.w3c.dom.DOMExceptionprotected ReferenceList(org.w3c.dom.Document owner,
java.lang.String tagName,
java.lang.String id)
throws org.w3c.dom.DOMException
ReferenceList instance.owner - The owner document of the new ReferenceList.tagName - The name of the element to be created; for example, "SignedInfo"
if this ReferenceList is to be a XML-DSIG
SignedInfo element.id - An optional string ID name for this reference list element.org.w3c.dom.DOMExceptionpublic void addReference(XSReference ref) throws org.w3c.dom.DOMException
ReferenceList.ref - A XSReference object.org.w3c.dom.DOMExceptionpublic java.util.Vector getReferences()
ReferenceList.Vector of XSReference objects.public void setId(java.lang.String id)
throws org.w3c.dom.DOMException
ReferenceList.org.w3c.dom.DOMExceptionpublic java.lang.String getId()
ReferenceList, or
null if the attribute is missing.public void computeRefDigests()
throws ReferenceException
ReferenceList.
Note: Digests will not be computed for References lacking a
URI attribute. See XSReference.computeDigest(byte[] input).
ReferenceExceptionpublic boolean validateRefDigests(boolean validateManifests)
throws ReferenceException
ReferenceList.
Note: References lacking a URI attribute will fail this validation.
See XSReference.validate(boolean validateManifests, byte[] dataObject).
validateManifests - If true, nested Manifests pointed to
by References will have their enclosed References
validated as well.true if all Reference digests are valid.
Returns false if any digest is invalid
or cannot be validated because the URI attribute is absent.ReferenceException - If an error occurs retrieving Referenced data objects,
applying transforms or computing digest values.XSReference.validate(boolean validateManifests),
XSReference.validate(boolean validateManifests, byte[] dataObject)public java.util.ArrayList<byte[]> getPreDigestedData()
public java.lang.StringBuilder getValidationErrorMessage()
public java.lang.StringBuilder getSignatureDetails()