Class DOMSignatureProperties
- java.lang.Object
-
- org.apache.jcp.xml.dsig.internal.dom.BaseStructure
-
- org.apache.jcp.xml.dsig.internal.dom.DOMSignatureProperties
-
- All Implemented Interfaces:
SignatureProperties
,XMLStructure
public final class DOMSignatureProperties extends BaseStructure implements SignatureProperties
DOM-based implementation of SignatureProperties.- Author:
- Sean Mullan
-
-
Field Summary
-
Fields inherited from interface javax.xml.crypto.dsig.SignatureProperties
TYPE
-
-
Constructor Summary
Constructors Constructor Description DOMSignatureProperties(List<DOMSignatureProperty> properties, String id)
Creates aDOMSignatureProperties
from the specified parameters.DOMSignatureProperties(Element propsElem)
Creates aDOMSignatureProperties
from an element.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getId()
List<SignatureProperty>
getProperties()
int
hashCode()
static void
marshal(XmlWriter xwriter, SignatureProperties sigProps, 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
-
DOMSignatureProperties
public DOMSignatureProperties(List<DOMSignatureProperty> properties, String id)
Creates aDOMSignatureProperties
from the specified parameters.- Parameters:
properties
- a list of one or moreSignatureProperty
s. The list is defensively copied to protect against subsequent modification.id
- the Id (may benull
)- Throws:
ClassCastException
- ifproperties
contains any entries that are not of typeSignatureProperty
IllegalArgumentException
- ifproperties
is emptyNullPointerException
- ifproperties
-
DOMSignatureProperties
public DOMSignatureProperties(Element propsElem) throws MarshalException
Creates aDOMSignatureProperties
from an element.- Parameters:
propsElem
- a SignatureProperties element- Throws:
MarshalException
- if a marshalling error occurs
-
-
Method Detail
-
getProperties
public List<SignatureProperty> getProperties()
- Specified by:
getProperties
in interfaceSignatureProperties
-
getId
public String getId()
- Specified by:
getId
in interfaceSignatureProperties
-
marshal
public static void marshal(XmlWriter xwriter, SignatureProperties sigProps, String dsPrefix, XMLCryptoContext context) throws MarshalException
- Throws:
MarshalException
-
-