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
-
-
Constructor Summary
Constructors Constructor Description DOMSignatureProperty(List<? extends XMLStructure> content, String target, String id)
Creates aSignatureProperty
from the specified parameters.DOMSignatureProperty(Element propElem)
Creates aDOMSignatureProperty
from an element.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 aSignatureProperty
from the specified parameters.- Parameters:
content
- a list of one or moreXMLStructure
s. The list is defensively copied to protect against subsequent modification.target
- the target URIid
- the Id (may benull
)- Throws:
ClassCastException
- ifcontent
contains any entries that are not of typeXMLStructure
IllegalArgumentException
- ifcontent
is emptyNullPointerException
- ifcontent
ortarget
isnull
-
DOMSignatureProperty
public DOMSignatureProperty(Element propElem) throws MarshalException
Creates aDOMSignatureProperty
from an element.- Parameters:
propElem
- a SignatureProperty element- Throws:
MarshalException
-
-
Method Detail
-
getContent
public List<XMLStructure> getContent()
- Specified by:
getContent
in interfaceSignatureProperty
-
getId
public String getId()
- Specified by:
getId
in interfaceSignatureProperty
-
getTarget
public String getTarget()
- Specified by:
getTarget
in interfaceSignatureProperty
-
marshal
public static void marshal(XmlWriter xwriter, SignatureProperty sigProp, String dsPrefix, XMLCryptoContext context) throws MarshalException
- Throws:
MarshalException
-
-