org.apache.jcp.xml.dsig.internal.dom
Class DOMSignatureProperty

java.lang.Object
  extended by org.apache.jcp.xml.dsig.internal.dom.BaseStructure
      extended by org.apache.jcp.xml.dsig.internal.dom.DOMSignatureProperty
All Implemented Interfaces:
SignatureProperty, XMLStructure

public final class DOMSignatureProperty
extends BaseStructure
implements SignatureProperty

DOM-based implementation of SignatureProperty.

Author:
Sean Mullan

Constructor Summary
DOMSignatureProperty(Element propElem)
          Creates a DOMSignatureProperty from an element.
DOMSignatureProperty(List<? extends XMLStructure> content, String target, String id)
          Creates a SignatureProperty from the specified parameters.
 
Method Summary
 boolean equals(Object o)
           
 List<XMLStructure> getContent()
           
 String getId()
           
 String getTarget()
           
 int hashCode()
           
static void marshal(XmlWriter xwriter, SignatureProperty sigProp, String dsPrefix, XMLCryptoContext context)
           
 
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.BaseStructure
isFeatureSupported, textOfNode
 
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(List<? extends XMLStructure> content,
                            String target,
                            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:
ClassCastException - if content contains any entries that are not of type XMLStructure
IllegalArgumentException - if content is empty
NullPointerException - if content or target is null

DOMSignatureProperty

public DOMSignatureProperty(Element propElem)
                     throws MarshalException
Creates a DOMSignatureProperty from an element.

Parameters:
propElem - a SignatureProperty element
Throws:
MarshalException
Method Detail

getContent

public List<XMLStructure> getContent()
Specified by:
getContent in interface SignatureProperty

getId

public String getId()
Specified by:
getId in interface SignatureProperty

getTarget

public String getTarget()
Specified by:
getTarget in interface SignatureProperty

marshal

public static void marshal(XmlWriter xwriter,
                           SignatureProperty sigProp,
                           String dsPrefix,
                           XMLCryptoContext context)
                    throws MarshalException
Throws:
MarshalException

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.