- java.lang.Object
-
- org.apache.jcp.xml.dsig.internal.dom.DOMStructure
-
- org.apache.jcp.xml.dsig.internal.dom.DOMManifest
-
- All Implemented Interfaces:
Manifest,XMLStructure
public final class DOMManifest extends DOMStructure implements Manifest
DOM-based implementation of Manifest.
-
-
Constructor Summary
Constructors Constructor Description DOMManifest(List<? extends Reference> references, String id)Creates aDOMManifestcontaining the specified list ofReferences and optional id.DOMManifest(Element manElem, XMLCryptoContext context, Provider provider)Creates aDOMManifestfrom an element.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetId()static List<Reference>getManifestReferences(Manifest mf)List<Reference>getReferences()inthashCode()voidmarshal(Node parent, String dsPrefix, DOMCryptoContext context)-
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMStructure
equalsContent, isFeatureSupported
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported
-
-
-
-
Constructor Detail
-
DOMManifest
public DOMManifest(List<? extends Reference> references, 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:
NullPointerException- ifreferencesisnullIllegalArgumentException- ifreferencesis emptyClassCastException- ifreferencescontains any entries that are not of typeReference
-
DOMManifest
public DOMManifest(Element manElem, XMLCryptoContext context, Provider provider) throws MarshalException
Creates aDOMManifestfrom an element.- Parameters:
manElem- a Manifest element- Throws:
MarshalException
-
-
Method Detail
-
getReferences
public List<Reference> getReferences()
- Specified by:
getReferencesin interfaceManifest
-
marshal
public void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException
- Specified by:
marshalin classDOMStructure- Throws:
MarshalException
-
-