Class DOMSignatureProperties

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

    public final class DOMSignatureProperties
    extends BaseStructure
    implements javax.xml.crypto.dsig.SignatureProperties
    DOM-based implementation of SignatureProperties.
    Author:
    Sean Mullan
    • Field Summary

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

        TYPE
    • Constructor Summary

      Constructors 
      Constructor Description
      DOMSignatureProperties​(java.util.List<DOMSignatureProperty> properties, java.lang.String id)
      Creates a DOMSignatureProperties from the specified parameters.
      DOMSignatureProperties​(org.w3c.dom.Element propsElem)
      Creates a DOMSignatureProperties 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.lang.String getId()  
      java.util.List<javax.xml.crypto.dsig.SignatureProperty> getProperties()  
      int hashCode()  
      static void marshal​(XmlWriter xwriter, javax.xml.crypto.dsig.SignatureProperties sigProps, 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

      • DOMSignatureProperties

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

        public DOMSignatureProperties​(org.w3c.dom.Element propsElem)
                               throws javax.xml.crypto.MarshalException
        Creates a DOMSignatureProperties from an element.
        Parameters:
        propsElem - a SignatureProperties element
        Throws:
        javax.xml.crypto.MarshalException - if a marshalling error occurs
    • Method Detail

      • getProperties

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

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

        public static void marshal​(XmlWriter xwriter,
                                   javax.xml.crypto.dsig.SignatureProperties sigProps,
                                   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