Class DOMSignatureProperty

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

    public final class DOMSignatureProperty
    extends BaseStructure
    implements javax.xml.crypto.dsig.SignatureProperty
    DOM-based implementation of SignatureProperty.
    Author:
    Sean Mullan
    • Constructor Summary

      Constructors 
      Constructor Description
      DOMSignatureProperty​(java.util.List<? extends javax.xml.crypto.XMLStructure> content, java.lang.String target, java.lang.String id)
      Creates a SignatureProperty from the specified parameters.
      DOMSignatureProperty​(org.w3c.dom.Element propElem)
      Creates a DOMSignatureProperty from an element.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.util.List<javax.xml.crypto.XMLStructure> getContent()  
      java.lang.String getId()  
      java.lang.String getTarget()  
      int hashCode()  
      static void marshal​(XmlWriter xwriter, javax.xml.crypto.dsig.SignatureProperty sigProp, java.lang.String dsPrefix, javax.xml.crypto.XMLCryptoContext 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

      • DOMSignatureProperty

        public DOMSignatureProperty​(java.util.List<? extends javax.xml.crypto.XMLStructure> content,
                                    java.lang.String target,
                                    java.lang.String id)
        Creates a SignatureProperty from the specified parameters.
        Parameters:
        content - a list of one or more XMLStructures. The list is defensively copied to protect against subsequent modification.
        target - the target URI
        id - the Id (may be null)
        Throws:
        java.lang.ClassCastException - if content contains any entries that are not of type XMLStructure
        java.lang.IllegalArgumentException - if content is empty
        java.lang.NullPointerException - if content or target is null
      • DOMSignatureProperty

        public DOMSignatureProperty​(org.w3c.dom.Element propElem)
                             throws javax.xml.crypto.MarshalException
        Creates a DOMSignatureProperty from an element.
        Parameters:
        propElem - a SignatureProperty element
        Throws:
        javax.xml.crypto.MarshalException
    • Method Detail

      • getContent

        public java.util.List<javax.xml.crypto.XMLStructure> getContent()
        Specified by:
        getContent in interface javax.xml.crypto.dsig.SignatureProperty
      • getId

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

        public java.lang.String getTarget()
        Specified by:
        getTarget in interface javax.xml.crypto.dsig.SignatureProperty
      • marshal

        public static void marshal​(XmlWriter xwriter,
                                   javax.xml.crypto.dsig.SignatureProperty sigProp,
                                   java.lang.String dsPrefix,
                                   javax.xml.crypto.XMLCryptoContext context)
                            throws javax.xml.crypto.MarshalException
        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