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

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

Field Summary
 
Fields inherited from interface javax.xml.crypto.dsig.Manifest
TYPE
 
Constructor Summary
DOMManifest(org.w3c.dom.Element manElem, XMLCryptoContext context, java.security.Provider provider)
          Creates a DOMManifest from an element.
DOMManifest(java.util.List references, java.lang.String id)
          Creates a DOMManifest containing the specified list of References and optional id.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getId()
          Returns the Id of this Manifest.
 java.util.List getReferences()
          Returns an unmodifiable list of one or more References that are contained in this Manifest.
 int hashCode()
           
 void marshal(org.w3c.dom.Node parent, java.lang.String dsPrefix, DOMCryptoContext context)
           
 
Methods inherited from class org.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(java.util.List references,
                   java.lang.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:
java.lang.NullPointerException - if references is null
java.lang.IllegalArgumentException - if references is empty
java.lang.ClassCastException - if references contains any entries that are not of type Reference

DOMManifest

public DOMManifest(org.w3c.dom.Element manElem,
                   XMLCryptoContext context,
                   java.security.Provider provider)
            throws MarshalException
Creates a DOMManifest from an element.

Parameters:
manElem - a Manifest element
Throws:
MarshalException
Method Detail

getId

public java.lang.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 java.util.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(org.w3c.dom.Node parent,
                    java.lang.String dsPrefix,
                    DOMCryptoContext context)
             throws MarshalException
Specified by:
marshal in class DOMStructure
Throws:
MarshalException

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2000-2014 The Apache Software Foundation. All Rights Reserved.