System.Security.Cryptography.Pkcs.Rfc3161TimestampTokenInfo
Represents the timestamp token information class defined in RFC3161 as TSTInfo.
Gets the accuracy with which Timestamp is compared.
Gets a value indicating whether there are any extensions associated with this timestamp token.
Gets an OID of the hash algorithm.
Gets a value indicating if every timestamp token from the same TSA can always be ordered based on the Timestamp, regardless of the accuracy. If the value is false, Timestamp indicates when the token has been created by the TSA.
Gets an OID representing the TSA's policy under which the response was produced.
Gets the timestamp encoded in the token.
Gets the version of the timestamp token.
public Rfc3161TimestampTokenInfo(Oid policyId, Oid hashAlgorithmId, ReadOnlyMemory<byte> messageHash, ReadOnlyMemory<byte> serialNumber, DateTimeOffset timestamp, long? accuracyInMicroseconds = default, bool isOrdering = false, ReadOnlyMemory<byte>? nonce = default, ReadOnlyMemory<byte>? timestampAuthorityName = default, X509ExtensionCollection extensions = null)
Initializes a new instance of the Rfc3161TimestampTokenInfo class with the specified parameters.
public static bool TryDecode(ReadOnlyMemory<byte> encodedBytes, out Rfc3161TimestampTokenInfo timestampTokenInfo, out int bytesConsumed)
Decodes an encoded TSTInfo value.
Encodes this object into a TSTInfo value.
Gets the extension values associated with the timestamp.
Gets the data representing the message hash.
Gets the nonce associated with this timestamp token.
Gets an integer assigned by the TSA to the Rfc3161TimestampTokenInfo.
Gets the data representing the hint in the TSA name identification.
Attempts to encode this object as a TSTInfo value, writing the result into the provided buffer.