org.jcp.xml.dsig.internal.dom
Class DOMSignatureProperties

java.lang.Object
  extended by org.jcp.xml.dsig.internal.dom.DOMStructure
      extended by org.jcp.xml.dsig.internal.dom.DOMSignatureProperties
All Implemented Interfaces:
SignatureProperties, XMLStructure

public final class DOMSignatureProperties
extends DOMStructure
implements SignatureProperties

DOM-based implementation of SignatureProperties.

Author:
Sean Mullan

Field Summary
 
Fields inherited from interface javax.xml.crypto.dsig.SignatureProperties
TYPE
 
Constructor Summary
DOMSignatureProperties(org.w3c.dom.Element propsElem)
          Creates a DOMSignatureProperties from an element.
DOMSignatureProperties(java.util.List properties, java.lang.String id)
          Creates a DOMSignatureProperties from the specified parameters.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getId()
          Returns the Id of this SignatureProperties.
 java.util.List getProperties()
          Returns an unmodifiable list of one or more SignaturePropertys that are contained in this SignatureProperties.
 int hashCode()
           
 void marshal(org.w3c.dom.Node parent, java.lang.String dsPrefix, DOMCryptoContext context)
           
 
Methods inherited from class org.jcp.xml.dsig.internal.dom.DOMStructure
isFeatureSupported
 
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 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 MarshalException
Creates a DOMSignatureProperties from an element.

Parameters:
propsElem - a SignatureProperties element
Throws:
MarshalException - if a marshalling error occurs
Method Detail

getProperties

public java.util.List getProperties()
Description copied from interface: SignatureProperties
Returns an unmodifiable list of one or more SignaturePropertys that are contained in this SignatureProperties.

Specified by:
getProperties in interface SignatureProperties
Returns:
an unmodifiable list of one or more SignaturePropertys

getId

public java.lang.String getId()
Description copied from interface: SignatureProperties
Returns the Id of this SignatureProperties.

Specified by:
getId in interface SignatureProperties
Returns:
the Id of this SignatureProperties (or null if not specified)

marshal

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


Copyright © 2000-2014 The Apache Software Foundation. All Rights Reserved.