|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jcp.xml.dsig.internal.dom.DOMStructure
org.jcp.xml.dsig.internal.dom.DOMSignatureProperty
public final class DOMSignatureProperty
DOM-based implementation of SignatureProperty.
Constructor Summary | |
---|---|
DOMSignatureProperty(org.w3c.dom.Element propElem)
Creates a DOMSignatureProperty from an element. |
|
DOMSignatureProperty(java.util.List content,
java.lang.String target,
java.lang.String id)
Creates a SignatureProperty from the specified parameters. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.util.List |
getContent()
Returns an unmodifiable
list of one or more XMLStructure s that are contained in
this SignatureProperty . |
java.lang.String |
getId()
Returns the Id of this SignatureProperty . |
java.lang.String |
getTarget()
Returns the target URI of this SignatureProperty . |
int |
hashCode()
|
void |
marshal(org.w3c.dom.Node parent,
java.lang.String dsPrefix,
DOMCryptoContext context)
|
Methods inherited from class org.jcp.xml.dsig.internal.dom.DOMStructure |
---|
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 |
---|
public DOMSignatureProperty(java.util.List 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 empty
java.lang.NullPointerException
- if content
or
target
is null
public DOMSignatureProperty(org.w3c.dom.Element propElem) throws MarshalException
DOMSignatureProperty
from an element.
propElem
- a SignatureProperty element
MarshalException
Method Detail |
---|
public java.util.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 java.lang.String getId()
SignatureProperty
SignatureProperty
.
getId
in interface SignatureProperty
SignatureProperty
(or
null
if not specified)public java.lang.String getTarget()
SignatureProperty
SignatureProperty
.
getTarget
in interface SignatureProperty
SignatureProperty
(never
null
)public void marshal(org.w3c.dom.Node parent, java.lang.String dsPrefix, DOMCryptoContext context) throws MarshalException
marshal
in class DOMStructure
MarshalException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |