public final class DOMManifest extends DOMStructure implements javax.xml.crypto.dsig.Manifest
Constructor and Description |
---|
DOMManifest(org.w3c.dom.Element manElem,
javax.xml.crypto.XMLCryptoContext context,
java.security.Provider provider)
Creates a
DOMManifest from an element. |
DOMManifest(java.util.List<? extends javax.xml.crypto.dsig.Reference> references,
java.lang.String id)
Creates a
DOMManifest containing the specified
list of Reference s and optional id. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getId() |
java.util.List |
getReferences() |
void |
marshal(org.w3c.dom.Node parent,
java.lang.String dsPrefix,
javax.xml.crypto.dom.DOMCryptoContext context) |
isFeatureSupported
public DOMManifest(java.util.List<? extends javax.xml.crypto.dsig.Reference> references, java.lang.String id)
DOMManifest
containing the specified
list of Reference
s and optional id.references
- a list of one or more Reference
s. The list
is defensively copied to protect against subsequent modification.id
- the id (may be null
java.lang.NullPointerException
- if references
is
null
java.lang.IllegalArgumentException
- if references
is emptyjava.lang.ClassCastException
- if references
contains any
entries that are not of type Reference
public DOMManifest(org.w3c.dom.Element manElem, javax.xml.crypto.XMLCryptoContext context, java.security.Provider provider) throws javax.xml.crypto.MarshalException
DOMManifest
from an element.manElem
- a Manifest elementjavax.xml.crypto.MarshalException
public java.lang.String getId()
getId
in interface javax.xml.crypto.dsig.Manifest
public java.util.List getReferences()
getReferences
in interface javax.xml.crypto.dsig.Manifest
public void marshal(org.w3c.dom.Node parent, java.lang.String dsPrefix, javax.xml.crypto.dom.DOMCryptoContext context) throws javax.xml.crypto.MarshalException
marshal
in class DOMStructure
javax.xml.crypto.MarshalException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object