public final class DOMSignatureProperty extends DOMStructure implements javax.xml.crypto.dsig.SignatureProperty
Constructor and Description |
---|
DOMSignatureProperty(org.w3c.dom.Element propElem,
javax.xml.crypto.XMLCryptoContext context)
Creates a
DOMSignatureProperty from an element. |
DOMSignatureProperty(java.util.List<? extends javax.xml.crypto.XMLStructure> content,
java.lang.String target,
java.lang.String id)
Creates a
SignatureProperty from the specified parameters. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.List |
getContent() |
java.lang.String |
getId() |
java.lang.String |
getTarget() |
void |
marshal(org.w3c.dom.Node parent,
java.lang.String dsPrefix,
javax.xml.crypto.dom.DOMCryptoContext context) |
isFeatureSupported
public DOMSignatureProperty(java.util.List<? extends javax.xml.crypto.XMLStructure> content, java.lang.String target, java.lang.String id)
SignatureProperty
from the specified parameters.content
- a list of one or more XMLStructure
s. The list
is defensively copied to protect against subsequent modification.target
- the target URIid
- the Id (may be null
)java.lang.ClassCastException
- if content
contains any
entries that are not of type XMLStructure
java.lang.IllegalArgumentException
- if content
is emptyjava.lang.NullPointerException
- if content
or
target
is null
public DOMSignatureProperty(org.w3c.dom.Element propElem, javax.xml.crypto.XMLCryptoContext context) throws javax.xml.crypto.MarshalException
DOMSignatureProperty
from an element.propElem
- a SignatureProperty elementjavax.xml.crypto.MarshalException
public java.util.List getContent()
getContent
in interface javax.xml.crypto.dsig.SignatureProperty
public java.lang.String getId()
getId
in interface javax.xml.crypto.dsig.SignatureProperty
public java.lang.String getTarget()
getTarget
in interface javax.xml.crypto.dsig.SignatureProperty
public void marshal(org.w3c.dom.Node parent, java.lang.String dsPrefix, javax.xml.crypto.dom.DOMCryptoContext context) throws javax.xml.crypto.MarshalException
marshal
in class DOMStructure
javax.xml.crypto.MarshalException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object