org.apache.jcp.xml.dsig.internal.dom
Class DOMManifest
java.lang.Object
org.apache.jcp.xml.dsig.internal.dom.BaseStructure
org.apache.jcp.xml.dsig.internal.dom.DOMManifest
- All Implemented Interfaces:
- Manifest, XMLStructure
public final class DOMManifest
- extends BaseStructure
- implements Manifest
DOM-based implementation of Manifest.
- Author:
- Sean Mullan
| Fields inherited from interface javax.xml.crypto.dsig.Manifest |
TYPE |
DOMManifest
public DOMManifest(List<DOMReference> 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()
- Specified by:
getId in interface Manifest
getManifestReferences
public static List<Reference> getManifestReferences(Manifest mf)
getReferences
public List<DOMReference> getReferences()
- Specified by:
getReferences in interface Manifest
marshal
public static void marshal(XmlWriter xwriter,
Manifest manif,
String dsPrefix,
XMLCryptoContext context)
throws MarshalException
- 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.