org.jcp.xml.dsig.internal.dom

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 inherited from interface javax.xml.crypto.dsig.SignatureProperties

        TYPE
    • Constructor Summary

      Constructors 
      Constructor and Description
      DOMSignatureProperties(org.w3c.dom.Element propsElem, javax.xml.crypto.XMLCryptoContext context)
      Creates a DOMSignatureProperties from an element.
      DOMSignatureProperties(java.util.List<? extends javax.xml.crypto.dsig.SignatureProperty> properties, java.lang.String id)
      Creates a DOMSignatureProperties from the specified parameters.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object o) 
      java.lang.String getId() 
      java.util.List 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
    • 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,
                              javax.xml.crypto.XMLCryptoContext context)
                               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 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

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