TspResponse Class

Represents a RFC 3161 implementation of Time-Stamp Protocol response.

Definition

Namespace: SysadminsLV.PKI.Cryptography
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public class TspResponse
Inheritance
Object    TspResponse

Remarks

This class has full support of RFC 3161 response format returned when using TspRfc3161Request Time-Stamp request format. Using other time-Stamp requests, Time-Stamp Authority (TSA) may respond with other encapsulated data. In this case, only Status, ResponseType, GenerationTimestamp and RawData properties are presented. Other properties have their default value and RequestMessage is null.

Constructors

TspResponse Initializes a new instance of TspResponse class from ASN.1-encoded byte array.

Properties

ChainErrors Specifies the certificate chain status.
Extensions Gets a collection of optional extensions associated with the current TSP request.
GenerationTimestamp Gets the date and time when response was generated.
NonceReceived Indicates whether a Nonce value was received along with response.
Ordering Indicates whether the timestamp tokens from the same TSA can be ordered.
PolicyID Gets or sets the TSA policy ID under which the timestamp was signed. This policy ID is TSA-specific.
RawData Gets the ASN.1-encoded byte array that represents current Time-Stamp response object.
RequestMessage Gets the message to timestamp.
ResponseErrors Specifies the status of response.
ResponseType Gets the response type. This value is Time-Stamp Token Info (1.2.840.113549.1.9.16.1.4) or PKCS 7 Data (1.2.840.113549.1.7.1).
SerialNumber Gets the serial number of response.
Status Gets the status of Time-Stamp Response and additional information if error occured.
TsaName Gets the name of TSA server. This property can be empty collection.
Version Gets the Time-Stamp Response version. This value shall be set to 1.

Methods

Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetNonceBytes Gets the byte array associated with the nonce value. If nonce is not received, an empty array is returned.
GetSignedCms Gets the signed CMS message associated with response. Returned object can be attached to Signed CMS signature in unauthenticated attributes like counter-signer.
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
ToString
(Inherited from Object)
ValidateNonce Validates nonce in request and response.

See Also