Class DOMManifest
- java.lang.Object
-
- org.apache.jcp.xml.dsig.internal.dom.DOMStructure
-
- org.apache.jcp.xml.dsig.internal.dom.DOMManifest
-
- All Implemented Interfaces:
javax.xml.crypto.dsig.Manifest
,javax.xml.crypto.XMLStructure
public final class DOMManifest extends DOMStructure implements javax.xml.crypto.dsig.Manifest
DOM-based implementation of Manifest.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
id
private java.util.List<javax.xml.crypto.dsig.Reference>
references
-
Constructor Summary
Constructors Constructor Description DOMManifest(java.util.List<? extends javax.xml.crypto.dsig.Reference> references, java.lang.String id)
Creates aDOMManifest
containing the specified list ofReference
s and optional id.DOMManifest(org.w3c.dom.Element manElem, javax.xml.crypto.XMLCryptoContext context, java.security.Provider provider)
Creates aDOMManifest
from an element.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getId()
static java.util.List<javax.xml.crypto.dsig.Reference>
getManifestReferences(javax.xml.crypto.dsig.Manifest mf)
java.util.List<javax.xml.crypto.dsig.Reference>
getReferences()
int
hashCode()
void
marshal(org.w3c.dom.Node parent, java.lang.String dsPrefix, javax.xml.crypto.dom.DOMCryptoContext context)
-
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMStructure
isFeatureSupported
-
-
-
-
Constructor Detail
-
DOMManifest
public DOMManifest(java.util.List<? extends javax.xml.crypto.dsig.Reference> references, java.lang.String id)
Creates aDOMManifest
containing the specified list ofReference
s and optional id.- Parameters:
references
- a list of one or moreReference
s. The list is defensively copied to protect against subsequent modification.id
- the id (may benull
- Throws:
java.lang.NullPointerException
- ifreferences
isnull
java.lang.IllegalArgumentException
- ifreferences
is emptyjava.lang.ClassCastException
- ifreferences
contains any entries that are not of typeReference
-
DOMManifest
public DOMManifest(org.w3c.dom.Element manElem, javax.xml.crypto.XMLCryptoContext context, java.security.Provider provider) throws javax.xml.crypto.MarshalException
Creates aDOMManifest
from an element.- Parameters:
manElem
- a Manifest element- Throws:
javax.xml.crypto.MarshalException
-
-
Method Detail
-
getId
public java.lang.String getId()
- Specified by:
getId
in interfacejavax.xml.crypto.dsig.Manifest
-
getManifestReferences
public static java.util.List<javax.xml.crypto.dsig.Reference> getManifestReferences(javax.xml.crypto.dsig.Manifest mf)
-
getReferences
public java.util.List<javax.xml.crypto.dsig.Reference> getReferences()
- Specified by:
getReferences
in interfacejavax.xml.crypto.dsig.Manifest
-
marshal
public void marshal(org.w3c.dom.Node parent, java.lang.String dsPrefix, javax.xml.crypto.dom.DOMCryptoContext context) throws javax.xml.crypto.MarshalException
- Specified by:
marshal
in classDOMStructure
- Throws:
javax.xml.crypto.MarshalException
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-