API Reference
Class
Rfc3161TimestampClient
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[]>>
- certificateValidation OfficeIMO.Security.CertificateValidationOptions? = null
- maximumResponseBytes System.Int32 = 1048576
Methods
public Byte[] GetTimestamp(Byte[] timestampedData) #Returns:
Byte[]Synchronous adapter for CMS signing's timestamp callback.
Parameters
- timestampedData System.Byte[]
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[]
- cancellationToken System.Threading.CancellationToken = default
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?