Edit

Kongsi melalui


Rfc3161TimestampTokenInfo Constructor

Definition

Initializes a new instance of the Rfc3161TimestampTokenInfo class with the specified parameters.

public Rfc3161TimestampTokenInfo (System.Security.Cryptography.Oid policyId, System.Security.Cryptography.Oid hashAlgorithmId, ReadOnlyMemory<byte> messageHash, ReadOnlyMemory<byte> serialNumber, DateTimeOffset timestamp, long? accuracyInMicroseconds = default, bool isOrdering = false, ReadOnlyMemory<byte>? nonce = default, ReadOnlyMemory<byte>? timestampAuthorityName = default, System.Security.Cryptography.X509Certificates.X509ExtensionCollection? extensions = default);
public Rfc3161TimestampTokenInfo (System.Security.Cryptography.Oid policyId, System.Security.Cryptography.Oid hashAlgorithmId, ReadOnlyMemory<byte> messageHash, ReadOnlyMemory<byte> serialNumber, DateTimeOffset timestamp, long? accuracyInMicroseconds = default, bool isOrdering = false, ReadOnlyMemory<byte>? nonce = default, ReadOnlyMemory<byte>? timestampAuthorityName = default, System.Security.Cryptography.X509Certificates.X509ExtensionCollection extensions = default);
new System.Security.Cryptography.Pkcs.Rfc3161TimestampTokenInfo : System.Security.Cryptography.Oid * System.Security.Cryptography.Oid * ReadOnlyMemory<byte> * ReadOnlyMemory<byte> * DateTimeOffset * Nullable<int64> * bool * Nullable<ReadOnlyMemory<byte>> * Nullable<ReadOnlyMemory<byte>> * System.Security.Cryptography.X509Certificates.X509ExtensionCollection -> System.Security.Cryptography.Pkcs.Rfc3161TimestampTokenInfo
Public Sub New (policyId As Oid, hashAlgorithmId As Oid, messageHash As ReadOnlyMemory(Of Byte), serialNumber As ReadOnlyMemory(Of Byte), timestamp As DateTimeOffset, Optional accuracyInMicroseconds As Nullable(Of Long) = Nothing, Optional isOrdering As Boolean = false, Optional nonce As Nullable(Of ReadOnlyMemory(Of Byte)) = Nothing, Optional timestampAuthorityName As Nullable(Of ReadOnlyMemory(Of Byte)) = Nothing, Optional extensions As X509ExtensionCollection = Nothing)

Parameters

policyId
Oid

An OID representing the TSA's policy under which the response was produced.

hashAlgorithmId
Oid

A hash algorithm OID of the data to be timestamped.

messageHash
ReadOnlyMemory<Byte>

A hash value of the data to be timestamped.

serialNumber
ReadOnlyMemory<Byte>

An integer assigned by the TSA to the Rfc3161TimestampTokenInfo.

timestamp
DateTimeOffset

The timestamp encoded in the token.

accuracyInMicroseconds
Nullable<Int64>

The accuracy with which timestamp is compared. Also see isOrdering.

isOrdering
Boolean

true to ensure that every timestamp token from the same TSA can always be ordered based on the timestamp, regardless of the accuracy; false to make timestamp indicate when token has been created by the TSA.

nonce
Nullable<ReadOnlyMemory<Byte>>

The nonce associated with this timestamp token. Using a nonce always allows to detect replays, and hence its use is recommended.

timestampAuthorityName
Nullable<ReadOnlyMemory<Byte>>

The hint in the TSA name identification. The actual identification of the entity that signed the response will always occur through the use of the certificate identifier.

extensions
X509ExtensionCollection

The extension values associated with the timestamp.

Exceptions

The ASN.1 data is corrupted.

Remarks

If hashAlgorithmId, messageHash, policyId, or nonce are present in the Rfc3161TimestampRequest, then the same value should be used. If accuracyInMicroseconds is not provided, then the accuracy may be available through other means such as policyId.

Applies to