org.apache.jcp.xml.dsig.internal.dom
Class DOMSignatureProperty
java.lang.Object
org.apache.jcp.xml.dsig.internal.dom.BaseStructure
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
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 URIid - 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
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.