public class DigestValueImpl extends XmldsigDOMStructure
DigestValue element that supports the
DOM XML representation and processing mechanism.DOMStructure.NodeWrapper| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
value_
The digest value.
|
implMap_, state_, STATE_CREATED, STATE_MARSHALED, STATE_UNINITIALIZED, STATE_UNMARSHALED| Constructor and Description |
|---|
DigestValueImpl()
Creates a new instance of this
DigestValueImpl. |
DigestValueImpl(byte[] value)
Creates a new instance of this
DigestValueImpl with the digest
value. |
DigestValueImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
DigestValueImpl with the
specified context and node to unmarshal from. |
| Modifier and Type | Method and Description |
|---|---|
void |
appendValue(DOMCryptoContext context,
byte[] value)
Appends the given digest value.
|
byte[] |
getDigestValue()
Returns the digest value.
|
String |
getLocalName()
Returns the local name of the represented XML element.
|
protected Element |
marshalElement(DOMCryptoContext context,
Node parent,
Node nextSibling)
Marshals the digest value if not marshaled yet.
|
protected void |
unmarshalElement(DOMCryptoContext context,
Element element)
Unmarshals the digest value.
|
getNamespace, initaddBytesToElement, addBytesToElement, clearMarshalling, clearMarshalling, getBytesFromElement, getBytesFromElementStream, getChildStructures, getChildStructureVersion, getHere, getImplClass, getInstance, getInstance, getNode, getParentStructure, getParentStructureOf, getQualifiedName, getQualifiedName, hasNSDeclAttrInScope, isFeatureSupported, isNSDeclInScope, marshal, marshalAttributes, marshalIDAttribute, newIDforLookUp, putChildStructure, putImplClass, setBackToCompatibilityPrior1_14, setNode, setParentStructure, toString, unmarshal, unmarshalAttributes, unmarshalIDAttribute, unmarshalStructures, wrapNodepublic DigestValueImpl()
DigestValueImpl.public DigestValueImpl(byte[] value)
DigestValueImpl with the digest
value.value - the raw digest valuepublic DigestValueImpl(DOMCryptoContext context, Node node) throws MarshalException
DigestValueImpl with the
specified context and node to unmarshal from.context - the contextnode - the node to unmarshal fromMarshalException - if an exception occurs during unmarshalingpublic byte[] getDigestValue()
public String getLocalName()
DOMStructuregetLocalName in class DOMStructureDOMStructure.getLocalName()protected Element marshalElement(DOMCryptoContext context, Node parent, Node nextSibling) throws MarshalException
marshalElement in class DOMStructurecontext - the marshal contextparent - where to place the marshalled elementnextSibling - before which to place the marshalled nodeElementMarshalException - if an exception occurs during marshalingpublic void appendValue(DOMCryptoContext context, byte[] value) throws MarshalException
context - the contextvalue - the raw digest valueMarshalException - if an exception occurs during marshalingprotected void unmarshalElement(DOMCryptoContext context, Element element) throws MarshalException
unmarshalElement in class DOMStructurecontext - the marshal contextelement - the element to be unmarshalMarshalException - if an exception occurs during unmarshaling© 2002-2005 IAIK, © 2004, 2006 - 2019 Stiftung SIC