Language

Rfc3161TimestampRequest.CreateFromHash メソッド

定義

事前に計算されたハッシュ値とハッシュ アルゴリズムの名前を使用してタイムスタンプ要求を作成します。

オーバーロード

名前 説明
CreateFromHash(ReadOnlyMemory<Byte>, HashAlgorithmName, Oid, Nullable<ReadOnlyMemory<Byte>>, Boolean, X509ExtensionCollection)

事前に計算されたハッシュ値とハッシュ アルゴリズムの名前を使用してタイムスタンプ要求を作成します。

CreateFromHash(ReadOnlyMemory<Byte>, Oid, Oid, Nullable<ReadOnlyMemory<Byte>>, Boolean, X509ExtensionCollection)

事前に計算されたハッシュ値とハッシュ アルゴリズムのオブジェクト識別子を使用してタイムスタンプ要求を作成します。

CreateFromHash(ReadOnlyMemory<Byte>, HashAlgorithmName, Oid, Nullable<ReadOnlyMemory<Byte>>, Boolean, X509ExtensionCollection)

ソース:
Rfc3161TimestampRequest.cs
ソース:
Rfc3161TimestampRequest.cs
ソース:
Rfc3161TimestampRequest.cs
ソース:
Rfc3161TimestampRequest.cs
ソース:
Rfc3161TimestampRequest.cs
ソース:
Rfc3161TimestampRequest.cs
ソース:
Rfc3161TimestampRequest.cs
ソース:
Rfc3161TimestampRequest.cs
ソース:
Rfc3161TimestampRequest.cs

事前に計算されたハッシュ値とハッシュ アルゴリズムの名前を使用してタイムスタンプ要求を作成します。

public static System.Security.Cryptography.Pkcs.Rfc3161TimestampRequest CreateFromHash(ReadOnlyMemory<byte> hash, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.Oid? requestedPolicyId = default, ReadOnlyMemory<byte>? nonce = default, bool requestSignerCertificates = false, System.Security.Cryptography.X509Certificates.X509ExtensionCollection? extensions = default);
public static System.Security.Cryptography.Pkcs.Rfc3161TimestampRequest CreateFromHash(ReadOnlyMemory<byte> hash, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.Oid requestedPolicyId = default, ReadOnlyMemory<byte>? nonce = default, bool requestSignerCertificates = false, System.Security.Cryptography.X509Certificates.X509ExtensionCollection extensions = default);
static member CreateFromHash : ReadOnlyMemory<byte> * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.Oid * Nullable<ReadOnlyMemory<byte>> * bool * System.Security.Cryptography.X509Certificates.X509ExtensionCollection -> System.Security.Cryptography.Pkcs.Rfc3161TimestampRequest
Public Shared Function CreateFromHash (hash As ReadOnlyMemory(Of Byte), hashAlgorithm As HashAlgorithmName, Optional requestedPolicyId As Oid = Nothing, Optional nonce As Nullable(Of ReadOnlyMemory(Of Byte)) = Nothing, Optional requestSignerCertificates As Boolean = false, Optional extensions As X509ExtensionCollection = Nothing) As Rfc3161TimestampRequest

パラメーター

hash
ReadOnlyMemory<Byte>

タイムスタンプを付ける事前計算済みのハッシュ値。

hashAlgorithm
HashAlgorithmName

hashの生成に使用されるハッシュ アルゴリズム。

requestedPolicyId
Oid

Timestamp Authority (TSA) が使用するタイムスタンプ ポリシーのオブジェクト識別子 (OID)、または優先設定を表さない null 。

nonce
Nullable<ReadOnlyMemory<Byte>>

要求を応答に一意に一致させるために使用する省略可能な値。または、要求に nonce を含めないように null 。

requestSignerCertificates
Boolean

true タイムスタンプ機関 (TSA) が発行されたタイムスタンプ トークンに署名証明書を含める必要があることを示す場合。それ以外の場合は false。

extensions
X509ExtensionCollection

要求に含める拡張機能の省略可能なコレクション。

返品

選択した値を表す Rfc3161TimestampRequest 。

例外

hashAlgorithm は既知のハッシュ アルゴリズムではありません。

注釈

このメソッドは、 hashAlgorithm パラメーターを使用して、タイムスタンプ要求に含めるオブジェクト識別子 (OID) を決定します。 このメソッドでサポートされていないハッシュ アルゴリズムに基づいてタイムスタンプの要求を作成する場合は、 CreateFromHash(ReadOnlyMemory<Byte>, Oid, Oid, Nullable<ReadOnlyMemory<Byte>>, Boolean, X509ExtensionCollection) オーバーロードを使用します。

このメソッドの nonce 値は、符号なし、ビッグ エンディアン整数として扱われます。 このメソッドは、nonce 値を割り当てる前に、入力を BER INTEGER エンコードに正規化します。 正規化された値は、 GetNonce() メソッドによって返されます。

こちらもご覧ください

適用対象

CreateFromHash(ReadOnlyMemory<Byte>, Oid, Oid, Nullable<ReadOnlyMemory<Byte>>, Boolean, X509ExtensionCollection)

ソース:
Rfc3161TimestampRequest.cs
ソース:
Rfc3161TimestampRequest.cs
ソース:
Rfc3161TimestampRequest.cs
ソース:
Rfc3161TimestampRequest.cs
ソース:
Rfc3161TimestampRequest.cs
ソース:
Rfc3161TimestampRequest.cs
ソース:
Rfc3161TimestampRequest.cs
ソース:
Rfc3161TimestampRequest.cs
ソース:
Rfc3161TimestampRequest.cs

事前に計算されたハッシュ値とハッシュ アルゴリズムのオブジェクト識別子を使用してタイムスタンプ要求を作成します。

public static System.Security.Cryptography.Pkcs.Rfc3161TimestampRequest CreateFromHash(ReadOnlyMemory<byte> hash, System.Security.Cryptography.Oid hashAlgorithmId, System.Security.Cryptography.Oid? requestedPolicyId = default, ReadOnlyMemory<byte>? nonce = default, bool requestSignerCertificates = false, System.Security.Cryptography.X509Certificates.X509ExtensionCollection? extensions = default);
public static System.Security.Cryptography.Pkcs.Rfc3161TimestampRequest CreateFromHash(ReadOnlyMemory<byte> hash, System.Security.Cryptography.Oid hashAlgorithmId, System.Security.Cryptography.Oid requestedPolicyId = default, ReadOnlyMemory<byte>? nonce = default, bool requestSignerCertificates = false, System.Security.Cryptography.X509Certificates.X509ExtensionCollection extensions = default);
static member CreateFromHash : ReadOnlyMemory<byte> * System.Security.Cryptography.Oid * System.Security.Cryptography.Oid * Nullable<ReadOnlyMemory<byte>> * bool * System.Security.Cryptography.X509Certificates.X509ExtensionCollection -> System.Security.Cryptography.Pkcs.Rfc3161TimestampRequest
Public Shared Function CreateFromHash (hash As ReadOnlyMemory(Of Byte), hashAlgorithmId As Oid, Optional requestedPolicyId As Oid = Nothing, Optional nonce As Nullable(Of ReadOnlyMemory(Of Byte)) = Nothing, Optional requestSignerCertificates As Boolean = false, Optional extensions As X509ExtensionCollection = Nothing) As Rfc3161TimestampRequest

パラメーター

hash
ReadOnlyMemory<Byte>

タイムスタンプを付ける事前計算済みのハッシュ値。

hashAlgorithmId
Oid

hashを生成したハッシュ アルゴリズムのオブジェクト識別子 (OID)。

requestedPolicyId
Oid

タイムスタンプ機関 (TSA) が使用するタイムスタンプ ポリシーのオブジェクト識別子 (OID)、または優先設定を表すために null 。

nonce
Nullable<ReadOnlyMemory<Byte>>

この要求を応答とペアリングするために一意に識別する省略可能な nonce (1 回使用される数値)。 値は符号なしビッグ エンディアン整数として解釈され、エンコード形式に正規化できます。

requestSignerCertificates
Boolean

true タイムスタンプ機関 (TSA) が発行されたタイムスタンプ トークンに署名証明書を含める必要があることを示す場合。それ以外の場合は false。

extensions
X509ExtensionCollection

要求に含める拡張機能の省略可能なコレクション。

返品

選択した値を表す Rfc3161TimestampRequest 。

例外

hashAlgorithmId は nullです。

hashAlgorithmId.Value が有効な OID ではありません。

注釈

このメソッドの nonce 値は、符号なし、ビッグ エンディアン整数として扱われます。 このメソッドは、nonce 値を割り当てる前に、入力を BER INTEGER エンコードに正規化します。 正規化された値は、 GetNonce() メソッドによって返されます。

こちらもご覧ください

適用対象