|
Oracle Security Developer Tools XML Security Java API Reference 11g (11.1.1) E10680-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.xmlsec.util.XMLNode
oracle.security.xmlsec.util.XMLElement
oracle.security.xmlsec.dsig.ReferenceList
public abstract class ReferenceList
Base class for XML structures containing a list of Reference elements.
Field Summary |
---|
Fields inherited from class oracle.security.xmlsec.util.XMLNode |
---|
node, systemId |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 . |
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 . |
Methods inherited from class oracle.security.xmlsec.util.XMLNode |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected 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.DOMException
protected 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.DOMException
XMLNode.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.DOMException
protected 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.DOMException
Method Detail |
---|
public void addReference(XSReference ref) throws org.w3c.dom.DOMException
ReferenceList
.ref
- A XSReference
object.org.w3c.dom.DOMException
public 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.DOMException
public 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)
.
ReferenceException
public 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()
|
Oracle Security Developer Tools XML Security Java API Reference 11g (11.1.1) E10680-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |