Click or drag to resize

TspResponse Class

Represents a RFC 3161 implementation of Time-Stamp Protocol response.
Inheritance Hierarchy
SystemObject
  SysadminsLV.PKI.CryptographyTspResponse

Namespace:  SysadminsLV.PKI.Cryptography
Assembly:  SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.5.0.0 (3.5.0.0)
Syntax
public class TspResponse

The TspResponse type exposes the following members.

Constructors
  NameDescription
Public methodTspResponse
Initializes a new instance of TspResponse class from ASN.1-encoded byte array.
Top
Properties
  NameDescription
Public propertyChainErrors
Specifies the certificate chain status.
Public propertyExtensions
Gets a collection of optional extensions associated with the current TSP request.
Public propertyGenerationTimestamp
Gets the date and time when response was generated.
Public propertyNonceReceived
Indicates whether a Nonce value was received along with response.
Public propertyOrdering
Indicates whether the timestamp tokens from the same TSA can be ordered.
Public propertyPolicyID
Gets or sets the TSA policy ID under which the timestamp was signed. This policy ID is TSA-specific.
Public propertyRawData
Gets the ASN.1-encoded byte array that represents current Time-Stamp response object.
Public propertyRequestMessage
Gets the message to timestamp.
Public propertyResponseErrors
Specifies the status of response.
Public propertyResponseType
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).
Public propertySerialNumber
Gets the serial number of response.
Public propertyStatus
Gets the status of Time-Stamp Response and additional information if error occured.
Public propertyTsaName
Gets the name of TSA server. This property can be empty collection.
Public propertyVersion
Gets the Time-Stamp Response version. This value shall be set to 1.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetNonceBytes
Gets the byte array associated with the nonce value. If nonce is not received, an empty array is returned.
Public methodGetSignedCms
Gets the signed CMS message associated with response. Returned object can be attached to Signed CMS signature in unauthenticated attributes like counter-signer.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodValidateNonce
Validates nonce in request and response.
Top
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.
See Also