Class DOMSignatureProperties

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

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

      Fields 
      Modifier and Type Field Description
      private java.lang.String id  
      private java.util.List<javax.xml.crypto.dsig.SignatureProperty> properties  
      • Fields inherited from interface javax.xml.crypto.dsig.SignatureProperties

        TYPE
    • Constructor Summary

      Constructors 
      Constructor Description
      DOMSignatureProperties​(java.util.List<? extends javax.xml.crypto.dsig.SignatureProperty> 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 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()  
      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
    • Field Detail

      • id

        private final java.lang.String id
      • properties

        private final java.util.List<javax.xml.crypto.dsig.SignatureProperty> properties
    • Constructor Detail

      • DOMSignatureProperties

        public DOMSignatureProperties​(java.util.List<? extends javax.xml.crypto.dsig.SignatureProperty> 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 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