org.apache.jcp.xml.dsig.internal.dom
Class DOMManifest

java.lang.Object
  extended by org.apache.jcp.xml.dsig.internal.dom.BaseStructure
      extended by 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

Field Summary
 
Fields inherited from interface javax.xml.crypto.dsig.Manifest
TYPE
 
Constructor Summary
DOMManifest(Element manElem, XMLCryptoContext context, Provider provider)
          Creates a DOMManifest from an element.
DOMManifest(List<DOMReference> references, String id)
          Creates a DOMManifest containing the specified list of References and optional id.
 
Method Summary
 boolean equals(Object o)
           
 String getId()
           
static List<Reference> getManifestReferences(Manifest mf)
           
 List<DOMReference> getReferences()
           
 int hashCode()
           
static void marshal(XmlWriter xwriter, Manifest manif, String dsPrefix, XMLCryptoContext context)
           
 
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.BaseStructure
isFeatureSupported, textOfNode
 
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<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
Method Detail

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.