public class SigAndRefsTimeStamp extends XAdESTimeStamp implements UnsignedSignaturePropertyElement
ds:SignatureValue element, all present
SignatureTimeStamp elements,
CompleteCertificateRefs, CompleteRevocationRefs,
and when present, AttributeCertificateRefs and
AttributeRevocationRefs.
Depending whether all the aforementioned time-stamped unsigned properties
and the SigAndRefsTimeStamp property itself have the same parent
or not, its contents may be different. Details are given in clauses below.
SigAndRefsTimeStamp and all the unsigned properties covered
by its time-stamp token have the same parent, this property uses the Implicit
mechanism. The input to the computation of the digest value MUST be the
result of taking in order each of the data objects listed below, canonicalize
each one and concatenate the resulting octet streams:
ds:SignatureValue element.
SigAndRefsTimeStamp, in their order of appearance within the
UnsignedSignatureProperties element:
SignatureTimeStamp elements.
CompleteCertificateRefs element.
CompleteRevocationRefs element.
AttributeCertificateRefs element if this property is
present.
AttributeRevocationRefs element if this property is
present.
Below follows the list -in order- of data objects that contribute to the
digest computation. Elements within [] contribute in their order of
appearance within the UnsignedSignatureProperties element, not
in the order they are enumerated below:
(ds:SignatureValue, [SignatureTimeStamp+, CompleteCertificateRefs, CompleteRevocationRefs, AttributeCertificateRefs?, AttributeRevocationRefs?]).
Include element will be added for
ds:SignatureValue. All applications MUST implicitly assume its
contribution to the digest input (see below in this clause).
Include element per each unsigned property that
MUST be covered by the time-stamp token in the order they appear listed
below:
Applications MUST build URI attributes following the rules stated in clause 7.1.4.3.1.
Generating applications MUST build digest computation input as indicated below:
ds:SignatureValue element and its content.
Canonicalize it and put the result in the final octet stream.
Include elements appear in the property). For each one extract
comment nodes, canonicalize and concatenate the resulting octet string to
the final octet stream.
Validating applications MUST build digest computation input as indicated below:
ds:SignatureValue. Canonicalize it and put the
result in the final octet stream.
Include element present as indicated
in clause 7.1.4.3.1. Concatenate the resulting octet strings to the final
octet stream.
Below follows the list of the data objects that contribute to the digest
computation. Super index e means that this property is referenced using
explicit mechanism, i.e. that the property contains an Include
element that references it:
(ds:SignatureValue, SignatureTimeStamp e+, CompleteCertificateRefs e, CompleteRevocationRefs e, AttributeCertificateRefs e?, AttributeRevocationRefs e?).
loggermCanonicalizationMethod, mEncapsulatedTimeStamps, mIncludes, mReferenceInfos, mXMLTimeStampsmContext, mElement, mId| Constructor and Description |
|---|
SigAndRefsTimeStamp(Context aContext,
XMLSignature aSignature,
DigestMethod aDMForTimestamp,
tr.gov.tubitak.uekae.esya.api.infra.tsclient.TSSettings aAyar) |
SigAndRefsTimeStamp(org.w3c.dom.Element aElement,
Context aContext)
Construct SigAndRefsTimeStamp from existing
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getContentForTimeStamp(XMLSignature aSignature) |
java.lang.String |
getLocalName() |
tr.gov.tubitak.uekae.esya.api.signature.attribute.TimestampType |
getType() |
addEncapsulatedTimeStamp, addInclude, addReferenceInfo, getCanonicalizationMethod, getEncapsulatedTimeStamp, getEncapsulatedTimeStampCount, getInclude, getIncludeCount, getReferenceInfo, getReferenceInfoCount, getXMLTimeStamps, setCanonicalizationMethod, setXMLTimeStampsgetNamespaceaddBigIntegerElement, addLineBreak, addLineBreak, checkNamespace, createElement, generateAndSetId, getAttribute, getBigIntegerFromElement, getChildText, getContext, getDocument, getElement, getId, insertBase64EncodedElement, insertElement, insertTextElement, selectChildElement, selectChildren, setIdpublic SigAndRefsTimeStamp(Context aContext, XMLSignature aSignature, DigestMethod aDMForTimestamp, tr.gov.tubitak.uekae.esya.api.infra.tsclient.TSSettings aAyar) throws XMLSignatureException
XMLSignatureExceptionpublic SigAndRefsTimeStamp(org.w3c.dom.Element aElement,
Context aContext)
throws XMLSignatureException
aElement - xml elementaContext - according to contextXMLSignatureException - when structure is invalid or can not be
resolved appropriatelypublic byte[] getContentForTimeStamp(XMLSignature aSignature) throws XMLSignatureException
getContentForTimeStamp in class XAdESTimeStampXMLSignatureExceptionpublic tr.gov.tubitak.uekae.esya.api.signature.attribute.TimestampType getType()
getType in class XAdESTimeStamppublic java.lang.String getLocalName()
getLocalName in class BaseElementCopyright © 2025. All rights reserved.