Module org.apache.santuario.xmlsec
Class DOMSignatureProperty
- java.lang.Object
-
- org.apache.jcp.xml.dsig.internal.dom.DOMStructure
-
- org.apache.jcp.xml.dsig.internal.dom.DOMSignatureProperty
-
- All Implemented Interfaces:
SignatureProperty,XMLStructure
public final class DOMSignatureProperty extends DOMStructure implements SignatureProperty
DOM-based implementation of SignatureProperty.
-
-
Constructor Summary
Constructors Constructor Description DOMSignatureProperty(List<? extends XMLStructure> content, String target, String id)Creates aSignaturePropertyfrom the specified parameters.DOMSignatureProperty(Element propElem)Creates aDOMSignaturePropertyfrom an element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<XMLStructure>getContent()StringgetId()StringgetTarget()inthashCode()voidmarshal(Node parent, String dsPrefix, DOMCryptoContext context)-
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMStructure
equalsContent, 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
-
DOMSignatureProperty
public DOMSignatureProperty(List<? extends XMLStructure> content, String target, String id)
Creates aSignaturePropertyfrom the specified parameters.- Parameters:
content- a list of one or moreXMLStructures. The list is defensively copied to protect against subsequent modification.target- the target URIid- the Id (may benull)- Throws:
ClassCastException- ifcontentcontains any entries that are not of typeXMLStructureIllegalArgumentException- ifcontentis emptyNullPointerException- ifcontentortargetisnull
-
DOMSignatureProperty
public DOMSignatureProperty(Element propElem) throws MarshalException
Creates aDOMSignaturePropertyfrom an element.- Parameters:
propElem- a SignatureProperty element- Throws:
MarshalException
-
-
Method Detail
-
getContent
public List<XMLStructure> getContent()
- Specified by:
getContentin interfaceSignatureProperty
-
getId
public String getId()
- Specified by:
getIdin interfaceSignatureProperty
-
getTarget
public String getTarget()
- Specified by:
getTargetin interfaceSignatureProperty
-
marshal
public void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException
- Specified by:
marshalin classDOMStructure- Throws:
MarshalException
-
-