org.apache.jcp.xml.dsig.internal.dom
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.
- Author:
- Sean Mullan
| Fields inherited from interface javax.xml.crypto.dsig.Manifest |
TYPE |
DOMManifest
public DOMManifest(List<? extends Reference> references,
String id)
- Creates a
DOMManifest containing the specified
list of References and optional id.
- Parameters:
references - a list of one or more References. The list
is defensively copied to protect against subsequent modification.id - the id (may be null
- Throws:
NullPointerException - if references is
null
IllegalArgumentException - if references is empty
ClassCastException - if references contains any
entries that are not of type Reference
DOMManifest
public DOMManifest(Element manElem,
XMLCryptoContext context,
Provider provider)
throws MarshalException
- Creates a
DOMManifest from an element.
- Parameters:
manElem - a Manifest element
- Throws:
MarshalException
getId
public String getId()
- Description copied from interface:
Manifest
- Returns the Id of this
Manifest.
- Specified by:
getId in interface Manifest
- Returns:
- the Id of this
Manifest (or null
if not specified)
getReferences
public List getReferences()
- Description copied from interface:
Manifest
- Returns an
unmodifiable
list of one or more References that are contained in this
Manifest.
- Specified by:
getReferences in interface Manifest
- Returns:
- an unmodifiable list of one or more
References
marshal
public void marshal(Node parent,
String dsPrefix,
DOMCryptoContext context)
throws MarshalException
- Specified by:
marshal in class DOMStructure
- Throws:
MarshalException
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.