org.jcp.xml.dsig.internal.dom

Class DOMManifest

  • All Implemented Interfaces:
    javax.xml.crypto.dsig.Manifest, javax.xml.crypto.XMLStructure


    public final class DOMManifest
    extends DOMStructure
    implements javax.xml.crypto.dsig.Manifest
    DOM-based implementation of Manifest.
    • Field Summary

      • Fields inherited from interface javax.xml.crypto.dsig.Manifest

        TYPE
    • Constructor Summary

      Constructors 
      Constructor and Description
      DOMManifest(org.w3c.dom.Element manElem, javax.xml.crypto.XMLCryptoContext context, java.security.Provider provider)
      Creates a DOMManifest from an element.
      DOMManifest(java.util.List<? extends javax.xml.crypto.dsig.Reference> references, java.lang.String id)
      Creates a DOMManifest containing the specified list of References and optional id.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object o) 
      java.lang.String getId() 
      java.util.List getReferences() 
      int hashCode() 
      void marshal(org.w3c.dom.Node parent, java.lang.String dsPrefix, javax.xml.crypto.dom.DOMCryptoContext context) 
      • 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<? extends javax.xml.crypto.dsig.Reference> 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,
                   javax.xml.crypto.XMLCryptoContext context,
                   java.security.Provider provider)
                    throws javax.xml.crypto.MarshalException
        Creates a DOMManifest from an element.
        Parameters:
        manElem - a Manifest element
        Throws:
        javax.xml.crypto.MarshalException
    • Method Detail

      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface javax.xml.crypto.dsig.Manifest
      • getReferences

        public java.util.List getReferences()
        Specified by:
        getReferences in interface javax.xml.crypto.dsig.Manifest
      • marshal

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

© Portions Copyright 2003, 2014 IBM Corporation. All rights reserved.
© Portions Copyright 2003, 2014 Oracle and/or its affiliates. All rights reserved.