Module org.apache.santuario.xmlsec
Class DOMSignatureProperties
- java.lang.Object
-
- org.apache.jcp.xml.dsig.internal.dom.DOMStructure
-
- org.apache.jcp.xml.dsig.internal.dom.DOMSignatureProperties
-
- All Implemented Interfaces:
SignatureProperties,XMLStructure
public final class DOMSignatureProperties extends DOMStructure implements SignatureProperties
DOM-based implementation of SignatureProperties.
-
-
Field Summary
-
Fields inherited from interface javax.xml.crypto.dsig.SignatureProperties
TYPE
-
-
Constructor Summary
Constructors Constructor Description DOMSignatureProperties(List<? extends SignatureProperty> properties, String id)Creates aDOMSignaturePropertiesfrom the specified parameters.DOMSignatureProperties(Element propsElem)Creates aDOMSignaturePropertiesfrom an element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetId()List<SignatureProperty>getProperties()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
-
DOMSignatureProperties
public DOMSignatureProperties(List<? extends SignatureProperty> properties, String id)
Creates aDOMSignaturePropertiesfrom the specified parameters.- Parameters:
properties- a list of one or moreSignaturePropertys. The list is defensively copied to protect against subsequent modification.id- the Id (may benull)- Throws:
ClassCastException- ifpropertiescontains any entries that are not of typeSignaturePropertyIllegalArgumentException- ifpropertiesis emptyNullPointerException- ifproperties
-
DOMSignatureProperties
public DOMSignatureProperties(Element propsElem) throws MarshalException
Creates aDOMSignaturePropertiesfrom an element.- Parameters:
propsElem- a SignatureProperties element- Throws:
MarshalException- if a marshalling error occurs
-
-
Method Detail
-
getProperties
public List<SignatureProperty> getProperties()
- Specified by:
getPropertiesin interfaceSignatureProperties
-
getId
public String getId()
- Specified by:
getIdin interfaceSignatureProperties
-
marshal
public void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException
- Specified by:
marshalin classDOMStructure- Throws:
MarshalException
-
-