Rediger

Del via


Rfc3161TimestampRequest Class

Definition

Represents a time-stamping request from IETF RFC 3161.

public ref class Rfc3161TimestampRequest sealed
public sealed class Rfc3161TimestampRequest
type Rfc3161TimestampRequest = class
Public NotInheritable Class Rfc3161TimestampRequest
Inheritance
Rfc3161TimestampRequest

Remarks

This class allows for the creation and inspection of TimeStampReq values as defined by IETF RFC 3161: Internet X.509 Public Key Infrastructure Time-Stamp Protocol (TSP).

Properties

HasExtensions

Indicates whether or not the request has extensions.

HashAlgorithmId

Gets the Object Identifier (OID) for the hash algorithm associated with the request.

RequestedPolicyId

Gets the policy ID for the request, or null when no policy ID was requested.

RequestSignerCertificate

Gets a value indicating whether or not the request indicated that the timestamp authority certificate is required to be in the response.

Version

Gets the data format version number for this request.

Methods

CreateFromData(ReadOnlySpan<Byte>, HashAlgorithmName, Oid, Nullable<ReadOnlyMemory<Byte>>, Boolean, X509ExtensionCollection)

Creates a timestamp request by hashing the provided data with a specified algorithm.

CreateFromHash(ReadOnlyMemory<Byte>, HashAlgorithmName, Oid, Nullable<ReadOnlyMemory<Byte>>, Boolean, X509ExtensionCollection)

Create a timestamp request using a pre-computed hash value and the name of the hash algorithm.

CreateFromHash(ReadOnlyMemory<Byte>, Oid, Oid, Nullable<ReadOnlyMemory<Byte>>, Boolean, X509ExtensionCollection)

Create a timestamp request using a pre-computed hash value and the Object Identifier for the hash algorithm.

CreateFromSignerInfo(SignerInfo, HashAlgorithmName, Oid, Nullable<ReadOnlyMemory<Byte>>, Boolean, X509ExtensionCollection)

Creates a timestamp request by hashing the signature of the provided signer with a specified algorithm.

Encode()

Encodes the timestamp request and returns it as a byte array.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetExtensions()

Gets a collection with a copy of the extensions present on this request.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetMessageHash()

Gets the data hash for this timestamp request.

GetNonce()

Gets the nonce for this timestamp request.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ProcessResponse(ReadOnlyMemory<Byte>, Int32)

Combines an encoded timestamp response with this request to produce a Rfc3161TimestampToken.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryDecode(ReadOnlyMemory<Byte>, Rfc3161TimestampRequest, Int32)

Attemps to interpret the contents of encodedBytes as a DER-encoded Timestamp Request.

TryEncode(Span<Byte>, Int32)

Attempts to encode the instance as an IETF RFC 3161 TimeStampReq, writing the bytes into the provided buffer.

Applies to