public interface XAdESTimeStamp extends XMLStructure
XAdESTimeStamp types defined in ETSI
TS 101 933 v1.3.2.
<xsd:element name="XAdESTimeStamp" type="XAdESTimeStampType"/>
<xsd:complexType name="XAdESTimeStampType">
<xsd:complexContent>
<xsd:restriction base="GenericTimeStampType">
<xsd:sequence>
<xsd:element ref="Include" minOccurs="0" maxOccurs="unbounded"/>
<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:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="GenericTimeStampType" abstract="true">
<xsd:sequence>
<xsd:choice minOccurs="0">
<xsd:element ref="Include" 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>
<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>
OtherTimeStamp, ReferenceInfo are not yet supported.Include| Modifier and Type | Method and Description |
|---|---|
CanonicalizationMethod |
getCanonicalizationMethod()
Returns the canonicalization method.
|
String |
getId()
Returns the
id-attribute value |
List |
getIncludes()
Returns the list
Includes |
InputStream |
getTimeStampInputStream()
Returns the time-stamp input stream, if time-stamp caching is enabled.
|
TimeStampToken |
getTimeStampToken()
Returns the time stamp token.
|
String |
getTokenId()
Returns the
id-attribute value of the timestamp token. |
boolean |
validate(XMLCryptoContext context)
Validates this time-stamp.
|
isFeatureSupportedTimeStampToken getTimeStampToken()
CanonicalizationMethod getCanonicalizationMethod() throws NoSuchAlgorithmException
CanonicalizationMethodNoSuchAlgorithmException - is thrown if the implementation for CanonicalizationMethod
cannot be found.String getId()
id-attribute valueid-attribute valueString getTokenId()
id-attribute value of the timestamp token.id-attribute value of the timestamp token.InputStream getTimeStampInputStream()
null if time-stamp caching is not enabled or this
time-stamp has not been digested or validated.boolean validate(XMLCryptoContext context) throws XMLSignatureException
This method only validates the time-stamp the first time it is invoked. On subsequent invocations, it returns a cached result.
Please Note that Data dereferenced using the explicit mechanism
Include are resolved by using XML's
xs:ID mechanism. It is up to an application developer to check whether the
dereferenced data is that intended by an application. Use
getTimeStampInputStream() to do so. However the use of the
explicit mechanism is not recommended.
context - the validating contexttrue if this time-stamp was validated successfully;
false otherwiseNullPointerException - if context is nullXMLSignatureException - if an unexpected exception occurs while validating the time-stamp© 2002-2005 IAIK, © 2004, 2006 - 2017 Stiftung SIC