Class DOMManifest
- 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 aDOMManifest
containing the specified list ofReference
s and optional id.DOMManifest(Element manElem, XMLCryptoContext context, Provider provider)
Creates aDOMManifest
from an element.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getId()
static List<Reference>
getManifestReferences(Manifest mf)
List<Reference>
getReferences()
int
hashCode()
void
marshal(Node parent, String dsPrefix, DOMCryptoContext context)
-
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMStructure
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 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:
NullPointerException
- ifreferences
isnull
IllegalArgumentException
- ifreferences
is emptyClassCastException
- ifreferences
contains any entries that are not of typeReference
-
DOMManifest
public DOMManifest(Element manElem, XMLCryptoContext context, Provider provider) throws MarshalException
Creates aDOMManifest
from an element.- Parameters:
manElem
- a Manifest element- Throws:
MarshalException
-
-
Method Detail
-
getReferences
public List<Reference> getReferences()
- Specified by:
getReferences
in interfaceManifest
-
marshal
public void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException
- Specified by:
marshal
in classDOMStructure
- Throws:
MarshalException
-
-