org.jcp.xml.dsig.internal.dom
Class DOMManifest
- java.lang.Object
-
- org.jcp.xml.dsig.internal.dom.DOMStructure
-
- org.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.
-
-
Constructor Summary
Constructors Constructor and Description DOMManifest(org.w3c.dom.Element manElem, javax.xml.crypto.XMLCryptoContext context, java.security.Provider provider)Creates aDOMManifestfrom an element.DOMManifest(java.util.List<? extends javax.xml.crypto.dsig.Reference> references, java.lang.String id)Creates aDOMManifestcontaining the specified list ofReferences and optional id.
-
Method Summary
Methods Modifier and Type Method and Description booleanequals(java.lang.Object o)java.lang.StringgetId()java.util.ListgetReferences()inthashCode()voidmarshal(org.w3c.dom.Node parent, java.lang.String dsPrefix, javax.xml.crypto.dom.DOMCryptoContext context)-
Methods inherited from class org.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 aDOMManifestcontaining the specified list ofReferences and optional id.- Parameters:
references- a list of one or moreReferences. The list is defensively copied to protect against subsequent modification.id- the id (may benull- Throws:
java.lang.NullPointerException- ifreferencesisnulljava.lang.IllegalArgumentException- ifreferencesis emptyjava.lang.ClassCastException- ifreferencescontains 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.MarshalExceptionCreates aDOMManifestfrom an element.- Parameters:
manElem- a Manifest element- Throws:
javax.xml.crypto.MarshalException
-
-
Method Detail
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfacejavax.xml.crypto.dsig.Manifest
-
getReferences
public java.util.List getReferences()
- Specified by:
getReferencesin 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:
marshalin classDOMStructure- Throws:
javax.xml.crypto.MarshalException
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-