public class RenewedDigestsImpl extends XadesDOMStructure implements RenewedDigests
RenewedDigests
type which supports the
DOM XML processing and representation mechanism.SignedProperties
Modifier and Type | Field and Description |
---|---|
protected String |
id_
The
id -attribute value. |
implMap_, state_, STATE_CREATED, STATE_MARSHALED, STATE_UNINITIALIZED, STATE_UNMARSHALED
LOCAL_NAME
Constructor and Description |
---|
RenewedDigestsImpl(DigestMethod digestMethod,
List recomputedDigestValues,
String id)
Creates
RenewedDigestImpl with the given digest method, list of recomputed digest values
and id.. |
RenewedDigestsImpl(DigestMethod digestMethod,
String id)
Creates
RenewedDigestImpl with the given digest method and id. |
RenewedDigestsImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
RenewedDigestsImpl with the given
context and. |
RenewedDigestsImpl(Node node)
Creates a new instance of this
RenewedDigestsImpl with the given
node. |
Modifier and Type | Method and Description |
---|---|
protected List |
getChildStructures() |
DigestMethod |
getDigestMethod()
Returns the digest method used for recomputing the digest values.
|
String |
getLocalName() |
String |
getNamespace()
Returns the namespace URI of the represented XML element.
|
List |
getRecomputedDigestValues()
Returns the
recomputed digest values contained
in this RenewedDigets . |
protected Attr |
marshalIDAttribute(DOMCryptoContext context,
Element parent) |
protected void |
putChildStructure(iaik.xml.crypto.dom.DOMStructure childStructure) |
void |
setRecomputedDigestValues(List recomputedDigestValues)
Sets the list of
recomputed digest values . |
protected void |
unmarshalAttributes(NamedNodeMap attributes,
DOMCryptoContext context) |
getInstance, getParentQualifyingPropertiesOf, getParentSignatureOf
addBytesToElement, 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, wrapNode
protected String id_
id
-attribute value.public RenewedDigestsImpl(Node node)
RenewedDigestsImpl
with the given
node.node
- the nodepublic RenewedDigestsImpl(DigestMethod digestMethod, String id)
RenewedDigestImpl
with the given digest method and id.digestMethod
- The DigestMethod
to be used for recomputing the (manifest) digest values.
Must not be null
.id
- The name of the id attribute for the lt;xades:RenewedDigests>
element.
Maybe null
.public RenewedDigestsImpl(DigestMethod digestMethod, List recomputedDigestValues, String id)
RenewedDigestImpl
with the given digest method, list of recomputed digest values
and id..digestMethod
- The DigestMethod
used for recomputing the (manifest) digest values.
Must not be null
.recomputedDigestValues
- The recomputed digest values. Must not be null
or empty.id
- The name of the id attribute for the lt;xades:RenewedDigests>
element.
Maybe null
.public RenewedDigestsImpl(DOMCryptoContext context, Node node) throws MarshalException
RenewedDigestsImpl
with the given
context and.context
- the context usedc for unmarshallingnode
- the node to unmarshal fromMarshalException
- if an exception occurs during unmarshalingprotected Attr marshalIDAttribute(DOMCryptoContext context, Element parent)
marshalIDAttribute
in class iaik.xml.crypto.dom.DOMStructure
DOMStructure.marshalIDAttribute(DOMCryptoContext,
Element)
protected void unmarshalAttributes(NamedNodeMap attributes, DOMCryptoContext context) throws MarshalException
unmarshalAttributes
in class iaik.xml.crypto.dom.DOMStructure
MarshalException
DOMStructure.unmarshalAttributes(org.w3c.dom.NamedNodeMap,
DOMCryptoContext)
protected List getChildStructures()
getChildStructures
in class iaik.xml.crypto.dom.DOMStructure
DOMStructure.getChildStructures()
protected void putChildStructure(iaik.xml.crypto.dom.DOMStructure childStructure) throws MarshalException
putChildStructure
in class iaik.xml.crypto.dom.DOMStructure
MarshalException
DOMStructure.putChildStructure(DOMStructure)
public void setRecomputedDigestValues(List recomputedDigestValues)
recomputed digest values
.recomputedDigestValues
- The recomputed digest values
.public List getRecomputedDigestValues()
RenewedDigests
recomputed digest values
contained
in this RenewedDigets
.getRecomputedDigestValues
in interface RenewedDigests
recomputed digest values
. Maybe empty if the
digest values have not yet been recomputed.RenewedDigests.getRecomputedDigestValues()
public DigestMethod getDigestMethod()
RenewedDigests
getDigestMethod
in interface RenewedDigests
RenewedDigests.getDigestMethod()
public String getLocalName()
getLocalName
in class iaik.xml.crypto.dom.DOMStructure
DOMStructure.getLocalName()
public String getNamespace()
XadesDOMStructure
getNamespace
in class XadesDOMStructure
XadesDOMStructure.getNamespace()
© 2002-2005 IAIK, © 2004, 2006 - 2017 Stiftung SIC