public class ManifestImpl extends XmldsigDOMStructure implements Manifest
Manifest element that supports the DOM
XML representation and processing mechanism.DOMStructure.NodeWrapper| Modifier and Type | Field and Description |
|---|---|
protected String |
id_
The
id-attribute value. |
protected List |
references_
The list of
ReferenceImpls. |
implMap_, state_, STATE_CREATED, STATE_MARSHALED, STATE_UNINITIALIZED, STATE_UNMARSHALED| Constructor and Description |
|---|
ManifestImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
ManifestImpl with the specified
context and node to unmarshal from. |
ManifestImpl(List references,
String id)
Creates a new instance of this
ManifestImpl with the specified
list of ReferenceImpls and id-attribute value. |
| Modifier and Type | Method and Description |
|---|---|
void |
generateReferences(DOMCryptoContext context)
Generates each
Reference in this SignedInfo by calling
ReferenceImpl.generateReference(DOMCryptoContext). |
protected List |
getChildStructures()
Returns the list of
References contained. |
String |
getId()
Returns the Id of this
Manifest. |
String |
getLocalName()
Returns the local name of the represented XML element.
|
List |
getReferences()
|
protected Attr |
marshalIDAttribute(DOMCryptoContext context,
Element parent)
Marshals the
Id-attribute. |
protected void |
putChildStructure(DOMStructure childStructure)
Stores
References. |
protected void |
unmarshalAttributes(NamedNodeMap attributes,
DOMCryptoContext context)
Unmarshals the
Id-attribute. |
getNamespace, initaddBytesToElement, addBytesToElement, clearMarshalling, clearMarshalling, getBytesFromElement, getBytesFromElementStream, getChildStructureVersion, getHere, getImplClass, getInstance, getInstance, getNode, getParentStructure, getParentStructureOf, getQualifiedName, getQualifiedName, hasNSDeclAttrInScope, isFeatureSupported, isNSDeclInScope, marshal, marshalAttributes, marshalElement, newIDforLookUp, putImplClass, setBackToCompatibilityPrior1_14, setNode, setParentStructure, toString, unmarshal, unmarshalElement, unmarshalIDAttribute, unmarshalStructures, wrapNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisFeatureSupportedprotected String id_
id-attribute value.protected List references_
ReferenceImpls. (may not be null)public ManifestImpl(DOMCryptoContext context, Node node) throws MarshalException
ManifestImpl with the specified
context and node to unmarshal from.context - the contextnode - the node to unmarshal fromMarshalException - if an exception occurs during unmarshalingpublic ManifestImpl(List references, String id)
ManifestImpl with the specified
list of ReferenceImpls and id-attribute value.references - a list of ReferenceImplsid - the id-attribute value (may be null)NullPointerException - if references is nullIllegalArgumentException - if references is emptyClassCastException - if any of the references is not of type
ReferenceImplpublic String getLocalName()
DOMStructuregetLocalName in class DOMStructureDOMStructure.getLocalName()public String getId()
javax.xml.crypto.dsig.ManifestManifest.getId in interface ManifestManifest (or null if not
specified)Manifest.getId()public List getReferences()
javax.xml.crypto.dsig.ManifestgetReferences in interface ManifestReferencesManifest.getReferences()public void generateReferences(DOMCryptoContext context) throws XMLSignatureException, MarshalException
Reference in this SignedInfo by calling
ReferenceImpl.generateReference(DOMCryptoContext).context - the marshal contextXMLSignatureException - if an unexpected exception occurs during reference generationMarshalException - if an exception occurs during marshalingprotected List getChildStructures()
References contained.getChildStructures in class DOMStructureDOMStructures (may be empty, but never
null)protected void putChildStructure(DOMStructure childStructure) throws MarshalException
References.putChildStructure in class DOMStructurechildStructure - the unmarshalled child structureMarshalExceptionprotected Attr marshalIDAttribute(DOMCryptoContext context, Element parent)
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
nullprotected void unmarshalAttributes(NamedNodeMap attributes, DOMCryptoContext context) throws MarshalException
Id-attribute.unmarshalAttributes in class DOMStructureattributes - the Attributes to unmarshalcontext - the marshal contextMarshalException - if an exception occurs during unmarshaling© 2002-2005 IAIK, © 2004, 2006 - 2019 Stiftung SIC