public abstract class GenericTimeStamp extends XAdESBaseElement
Below follows the schema definition for the data type.
<xsd:complexType name="IncludeType">
<xsd:attribute name="URI" type="xsd:anyURI" use="required"/>
<xsd:attribute name="referencedData" type="xsd:boolean" use="optional"/>
</xsd:complexType>
<xsd:element name="ReferenceInfo" type="ReferenceInfoType"/>
<xsd:complexType name="ReferenceInfoType">
<xsd:sequence>
<xsd:element ref="ds:DigestMethod"/>
<xsd:element ref="ds:DigestValue"/>
</xsd:sequence>
<xsd:attribute name="Id" type="xsd:ID" use="optional"/>
<xsd:attribute name="URI" type="xsd:anyURI" use="optional"/>
</xsd:complexType>
<xsd:complexType name="GenericTimeStampType" abstract="true">
<xsd:sequence>
<xsd:choice minOccurs="0">
<xsd:element ref="Include" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="ReferenceInfo" maxOccurs="unbounded"/>
</xsd:choice>
<xsd:element ref="ds:CanonicalizationMethod" minOccurs="0"/>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="EncapsulatedTimeStamp" type="EncapsulatedPKIDataType"/>
<xsd:element name="XMLTimeStamp" type="AnyType"/>
</xsd:choice>
</xsd:sequence>
<xsd:attribute name="Id" type="xsd:ID" use="optional"/>
</xsd:complexType>
When present, the optional ds:CanonicalizationMethod element
will indicate the canonicalization method used for canonicalizing XML node
sets resulting after retrieving (and processing when required) the data
objects covered by the time-stamp token(s). When not present, the standard
canonicalization method as specified by XMLDSIG MUST be used.
The time-stamp token generated by the TSA can be either an ASN.1 data
object (as defined in [10], use EncapsulatedTimeStamp), or it
can be encoded as XML (use XMLTimeStamp).
| Modifier and Type | Field and Description |
|---|---|
protected C14nMethod |
mCanonicalizationMethod |
protected java.util.List<EncapsulatedTimeStamp> |
mEncapsulatedTimeStamps |
protected java.util.List<Include> |
mIncludes |
protected java.util.List<ReferenceInfo> |
mReferenceInfos |
protected java.util.List<Any> |
mXMLTimeStamps |
mContext, mElement, mId| Modifier | Constructor and Description |
|---|---|
protected |
GenericTimeStamp(Context aContext) |
protected |
GenericTimeStamp(org.w3c.dom.Element aElement,
Context aContext)
Construct GenericTimeStamp from existing
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEncapsulatedTimeStamp(EncapsulatedTimeStamp aETS) |
void |
addInclude(Include aInclude) |
void |
addReferenceInfo(ReferenceInfo aReferenceInfo) |
C14nMethod |
getCanonicalizationMethod() |
EncapsulatedTimeStamp |
getEncapsulatedTimeStamp(int aIndex) |
int |
getEncapsulatedTimeStampCount() |
Include |
getInclude(int aIndex) |
int |
getIncludeCount() |
ReferenceInfo |
getReferenceInfo(int aIndex) |
int |
getReferenceInfoCount() |
java.util.List<Any> |
getXMLTimeStamps() |
void |
setCanonicalizationMethod(C14nMethod aCanonicalizationMethod) |
void |
setXMLTimeStamps(java.util.List<Any> aXMLTimeStamps) |
getNamespaceaddBigIntegerElement, addLineBreak, addLineBreak, checkNamespace, createElement, generateAndSetId, getAttribute, getBigIntegerFromElement, getChildText, getContext, getDocument, getElement, getId, getLocalName, insertBase64EncodedElement, insertElement, insertTextElement, selectChildElement, selectChildren, setIdprotected java.util.List<Include> mIncludes
protected java.util.List<ReferenceInfo> mReferenceInfos
protected C14nMethod mCanonicalizationMethod
protected java.util.List<EncapsulatedTimeStamp> mEncapsulatedTimeStamps
protected java.util.List<Any> mXMLTimeStamps
protected GenericTimeStamp(Context aContext)
protected GenericTimeStamp(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 int getIncludeCount()
public Include getInclude(int aIndex)
public void addInclude(Include aInclude)
public int getReferenceInfoCount()
public ReferenceInfo getReferenceInfo(int aIndex)
public void addReferenceInfo(ReferenceInfo aReferenceInfo)
public C14nMethod getCanonicalizationMethod()
public void setCanonicalizationMethod(C14nMethod aCanonicalizationMethod)
public int getEncapsulatedTimeStampCount()
public EncapsulatedTimeStamp getEncapsulatedTimeStamp(int aIndex)
public void addEncapsulatedTimeStamp(EncapsulatedTimeStamp aETS)
public java.util.List<Any> getXMLTimeStamps()
public void setXMLTimeStamps(java.util.List<Any> aXMLTimeStamps)
Copyright © 2025. All rights reserved.