Share via


Rfc3161TimestampTokenInfo コンストラクター

定義

指定したパラメーターを使用して、Rfc3161TimestampTokenInfo クラスの新しいインスタンスを初期化します。

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)

パラメーター

policyId
Oid

応答が生成された TSA のポリシーを表す OID。

hashAlgorithmId
Oid

タイムスタンプが設定されるデータのハッシュ アルゴリズム OID。

messageHash
ReadOnlyMemory<Byte>

タイムスタンプを付けるデータのハッシュ値。

serialNumber
ReadOnlyMemory<Byte>

TSA Rfc3161TimestampTokenInfoによって に割り当てられた整数。

timestamp
DateTimeOffset

トークンでエンコードされたタイムスタンプ。

accuracyInMicroseconds
Nullable<Int64>

比較される timestamp 精度。 「isOrdering」も参照してください。

isOrdering
Boolean

true同じ TSA からのすべてのタイムスタンプ トークンを、精度 falsetimestampに関係なく に基づいて常にtimestamp順序付けできるようにするため。トークンが TSA によっていつ作成されたかを示します。

nonce
Nullable<ReadOnlyMemory<Byte>>

このタイムスタンプ トークンに関連付けられている nonce。 nonce を使用すると、常に再生を検出できるため、その使用をお勧めします。

timestampAuthorityName
Nullable<ReadOnlyMemory<Byte>>

TSA 名識別のヒント。 応答に署名したエンティティの実際の識別は、常に証明書識別子を使用して行われます。

extensions
X509ExtensionCollection

タイムスタンプに関連付けられている拡張値。

例外

ASN.1 データが破損しています。

注釈

に 、messageHashpolicyId、または nonce が存在Rfc3161TimestampRequestする場合hashAlgorithmIdは、同じ値を使用する必要があります。 が指定されていない場合 accuracyInMicroseconds 、精度は などの policyId他の方法で使用できます。

適用対象