public class SignaturePropertyImpl extends XmldsigDOMStructure implements SignatureProperty
SignatureProperty element that supports
the DOM XML representation and processing mechanism.DOMStructure.NodeWrapper| Modifier and Type | Field and Description |
|---|---|
protected List |
content_
The content.
|
protected String |
id_
The
id-attribute value. |
protected String |
target_
The
target-attribute value. |
implMap_, state_, STATE_CREATED, STATE_MARSHALED, STATE_UNINITIALIZED, STATE_UNMARSHALED| Constructor and Description |
|---|
SignaturePropertyImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
SignaturePropertyImpl with the
specified context and node to unmarshal from. |
SignaturePropertyImpl(List content,
String id,
String target)
Creates a new instance of this
SignaturePropertyImpl with the
specified list of XMLStructures, id-attribute value
and target-attribute value. |
| Modifier and Type | Method and Description |
|---|---|
protected List |
getChildStructures()
Returns the list of child structures of this
DOMStructure. |
List |
getContent()
Returns an
unmodifiable list of one or more XMLStructures that are contained
in this SignatureProperty. |
String |
getId()
Returns the Id of this
SignatureProperty. |
String |
getLocalName()
Returns the local name of the represented XML element.
|
String |
getTarget()
Returns the target URI of this
SignatureProperty. |
protected void |
marshalAttributes(DOMCryptoContext context,
Element parent)
Marshals the
Target-attribute. |
protected Attr |
marshalIDAttribute(DOMCryptoContext context,
Element parent)
Marshals the XML representation of an optional
Id-attribute
represented by this DOMStructure. |
protected void |
putChildStructure(DOMStructure childStructure)
Put an unmarshalled child structure.
|
protected void |
unmarshalAttributes(NamedNodeMap attributes,
DOMCryptoContext context)
Unmarshals the
Id-attribute and the Target
-attribute. |
protected void |
unmarshalStructures(NodeList nodes,
DOMCryptoContext context)
Unmarshals the contents of this
SignatureProperty. |
getNamespace, initaddBytesToElement, addBytesToElement, clearMarshalling, clearMarshalling, getBytesFromElement, getBytesFromElementStream, getChildStructureVersion, getHere, getImplClass, getInstance, getInstance, getNode, getParentStructure, getParentStructureOf, getQualifiedName, getQualifiedName, hasNSDeclAttrInScope, isFeatureSupported, isNSDeclInScope, marshal, marshalElement, newIDforLookUp, putImplClass, setBackToCompatibilityPrior1_14, setNode, setParentStructure, toString, unmarshal, unmarshalElement, unmarshalIDAttribute, wrapNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisFeatureSupportedprotected List content_
null)protected String id_
id-attribute value.protected String target_
target-attribute value. (may not be null)public SignaturePropertyImpl(DOMCryptoContext context, Node node) throws MarshalException
SignaturePropertyImpl with the
specified context and node to unmarshal from.context - the contextnode - the node to unmarshal fromMarshalException - if an exception occurs during unmarshalingpublic SignaturePropertyImpl(List content, String id, String target)
SignaturePropertyImpl with the
specified list of XMLStructures, id-attribute value
and target-attribute value.content - a list of XMLStructuresid - the id-attribute value (may be null)target - the target-attribute valueNullPointerException - content or target is nullIllegalArgumentException - if content is emptyClassCastException - if any of the content elements is not of type
XMLStructurepublic String getLocalName()
DOMStructuregetLocalName in class DOMStructureDOMStructure.getLocalName()public List getContent()
javax.xml.crypto.dsig.SignaturePropertyunmodifiable list of one or more XMLStructures 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 SignaturePropertyXMLStructuresSignatureProperty.getContent()public String getTarget()
javax.xml.crypto.dsig.SignaturePropertySignatureProperty.getTarget in interface SignaturePropertySignatureProperty (never
null)SignatureProperty.getTarget()public String getId()
javax.xml.crypto.dsig.SignaturePropertySignatureProperty.getId in interface SignaturePropertySignatureProperty (or null
if not specified)SignatureProperty.getId()protected void marshalAttributes(DOMCryptoContext context, Element parent) throws MarshalException
Target-attribute.marshalAttributes in class DOMStructurecontext - the marshal contextparent - the element is the parent of the attribute node created however, an
the attribute node is not a child of it's parent element. see XPath.MarshalException - if an exception occurs during marshalingprotected Attr marshalIDAttribute(DOMCryptoContext context, Element parent)
DOMStructureId-attribute
represented by this DOMStructure.
This method is called by DOMStructure.marshal(DOMCryptoContext, Node, Node).
A subclass has to overwrite this method in order to marshal an
Id-attribute.
marshalIDAttribute in class DOMStructurecontext - the marshal contextparent - the element is the parent of the attribute node created however, an
the attribute node is not a child of it's parent element. see XPath.Id-attribute if any, otherwise
nullDOMStructure.marshalIDAttribute(DOMCryptoContext,
Element)protected void unmarshalAttributes(NamedNodeMap attributes, DOMCryptoContext context) throws MarshalException
Id-attribute and the Target
-attribute.unmarshalAttributes in class DOMStructureattributes - the Attributes to unmarshalcontext - the marshal contextMarshalException - if an exception occurs during unmarshalingprotected void putChildStructure(DOMStructure childStructure) throws MarshalException
DOMStructure
This method is called by
DOMStructure.unmarshalStructures(NodeList, DOMCryptoContext) for every
unmarshalled child structure.
A subclass has to overwrite this method to store the given child structure in its the corresponding field.
putChildStructure in class DOMStructurechildStructure - the unmarshalled child structureMarshalExceptionDOMStructure.putChildStructure(iaik.xml.crypto.dom.DOMStructure)protected List getChildStructures()
DOMStructureDOMStructure.
This method is called by DOMStructure.marshal(DOMCryptoContext, Node, Node).
A subclass has to overwrite this method to return a list of
DOMStrucutres represented by this subclass.
getChildStructures in class DOMStructureDOMStructures (may be empty, but never
null)DOMStructure.getChildStructures()protected void unmarshalStructures(NodeList nodes, DOMCryptoContext context) throws MarshalException
SignatureProperty.unmarshalStructures in class DOMStructurenodes - the nodes to unmarshal fromcontext - the marshal contextMarshalException - if an exception occurs during marshalingDOMStructure.unmarshalStructures(org.w3c.dom.NodeList,
DOMCryptoContext)© 2002-2005 IAIK, © 2004, 2006 - 2019 Stiftung SIC