public final class DOMSignatureProperty extends DOMStructure implements SignatureProperty
Constructor and Description |
---|
DOMSignatureProperty(Element propElem,
XMLCryptoContext context)
Creates a
DOMSignatureProperty from an element. |
DOMSignatureProperty(List<? extends XMLStructure> content,
String target,
String id)
Creates a
SignatureProperty from the specified parameters. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List |
getContent()
Returns an
unmodifiable
list of one or more XMLStructure s that are contained in
this SignatureProperty . |
String |
getId()
Returns the Id of this
SignatureProperty . |
String |
getTarget()
Returns the target URI of this
SignatureProperty . |
int |
hashCode() |
void |
marshal(Node parent,
String dsPrefix,
DOMCryptoContext context) |
isFeatureSupported
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isFeatureSupported
public DOMSignatureProperty(List<? extends XMLStructure> content, String target, 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
)ClassCastException
- if content
contains any
entries that are not of type XMLStructure
IllegalArgumentException
- if content
is emptyNullPointerException
- if content
or
target
is null
public DOMSignatureProperty(Element propElem, XMLCryptoContext context) throws MarshalException
DOMSignatureProperty
from an element.propElem
- a SignatureProperty elementMarshalException
public List getContent()
SignatureProperty
unmodifiable
list
of one or more XMLStructure
s that are contained in
this SignatureProperty
. These represent additional
information items concerning the generation of the XMLSignature
(i.e. date/time stamp or serial numbers of cryptographic hardware used
in signature generation).getContent
in interface SignatureProperty
XMLStructure
spublic String getId()
SignatureProperty
SignatureProperty
.getId
in interface SignatureProperty
SignatureProperty
(or
null
if not specified)public String getTarget()
SignatureProperty
SignatureProperty
.getTarget
in interface SignatureProperty
SignatureProperty
(never
null
)public void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException
marshal
in class DOMStructure
MarshalException
Copyright © 2000-2012 The Apache Software Foundation. All Rights Reserved.