Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

Rfc3161TimestampClient

Namespace OfficeIMO.Security
Assembly OfficeIMO.Security
Source revision 378fa9b4b0cb with working tree changes
Modifiers sealed

RFC 3161 client with caller-owned HTTP transport, endpoint, credentials and trust policy.

Inheritance

  • Object
  • Rfc3161TimestampClient

Constructors

public Rfc3161TimestampClient(Func<Byte[], CancellationToken, Task<Byte[]>> transport, CertificateValidationOptions? certificateValidation = null, Int32 maximumResponseBytes = 1048576) #

Creates a client. The transport must POST the request as application/timestamp-query and return the application/timestamp-reply body, enforcing an HTTP response-size limit before buffering it. The client checks the response again and verifies nonce, imprint, signature, TSA profile and trust.

Parameters

transport System.Func<System.Byte[], System.Threading.CancellationToken, System.Threading.Tasks.Task<System.Byte[]>> requiredposition: 0
certificateValidation OfficeIMO.Security.CertificateValidationOptions? = null optionalposition: 1
maximumResponseBytes System.Int32 = 1048576 optionalposition: 2

Methods

public Byte[] GetTimestamp(Byte[] timestampedData) #
Returns: Byte[]

Synchronous adapter for CMS signing's timestamp callback.

Parameters

timestampedData System.Byte[] requiredposition: 0
public async Task<Byte[]> GetTimestampAsync(Byte[] timestampedData, CancellationToken cancellationToken = default) #
Returns: Task<Byte[]>

Requests a SHA-256 timestamp over the supplied bytes, returning a verified DER token.

Parameters

timestampedData System.Byte[] requiredposition: 0
cancellationToken System.Threading.CancellationToken = default optionalposition: 1