Rfc3161TimestampRequest.CreateFromHash Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
CreateFromHash(ReadOnlyMemory<Byte>, HashAlgorithmName, Oid, Nullable<ReadOnlyMemory<Byte>>, Boolean, X509ExtensionCollection) |
Önceden hesaplanan bir karma değeri ve karma algoritmasının adını kullanarak bir zaman damgası isteği İçerik Oluşturucu. |
CreateFromHash(ReadOnlyMemory<Byte>, Oid, Oid, Nullable<ReadOnlyMemory<Byte>>, Boolean, X509ExtensionCollection) |
Önceden hesaplanan karma değeri ve karma algoritması için Nesne Tanımlayıcısı'nı kullanarak bir zaman damgası isteği İçerik Oluşturucu. |
CreateFromHash(ReadOnlyMemory<Byte>, HashAlgorithmName, Oid, Nullable<ReadOnlyMemory<Byte>>, Boolean, X509ExtensionCollection)
- Kaynak:
- Rfc3161TimestampRequest.cs
- Kaynak:
- Rfc3161TimestampRequest.cs
- Kaynak:
- Rfc3161TimestampRequest.cs
- Kaynak:
- Rfc3161TimestampRequest.cs
- Kaynak:
- Rfc3161TimestampRequest.cs
Önceden hesaplanan bir karma değeri ve karma algoritmasının adını kullanarak bir zaman damgası isteği İçerik Oluşturucu.
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
Parametreler
- hash
- ReadOnlyMemory<Byte>
Zaman damgası eklenecek önceden hesaplanan karma değer.
- hashAlgorithm
- HashAlgorithmName
üretmek hash
için kullanılan karma algoritması.
- requestedPolicyId
- Oid
Zaman Damgası Yetkilisi'nin (TSA) kullanması gereken veya null
hiçbir tercihi belirtmemesi için zaman damgası ilkesinin Nesne Tanımlayıcısı (OID).
- nonce
- Nullable<ReadOnlyMemory<Byte>>
bir isteği bir yanıtla benzersiz olarak eşleştirmek veya null
isteğe bir nonce eklememek için kullanılan isteğe bağlı bir değer.
- requestSignerCertificates
- Boolean
true
Zaman Damgası Yetkilisinin (TSA) verilen zaman damgası belirtecine imzalama sertifikasını içermesi gerektiğini belirtmek için; aksi takdirde , false
.
- extensions
- X509ExtensionCollection
İsteğe bağlı olarak isteğe bağlı olarak isteğe bağlı bir uzantı koleksiyonu.
Döndürülenler
Rfc3161TimestampRequest Seçilen değerleri temsil eden.
Özel durumlar
hashAlgorithm
bilinen bir karma algoritması değildir.
Açıklamalar
Bu yöntem, zaman damgası isteğine eklenecek Nesne Tanımlayıcısını (OID) belirlemek için parametresini kullanır hashAlgorithm
.
Bu yöntemin desteklemediği bir karma algoritmayı temel alan bir zaman damgası için istek oluştururken aşırı yüklemeyi kullanın CreateFromHash(ReadOnlyMemory<Byte>, Oid, Oid, Nullable<ReadOnlyMemory<Byte>>, Boolean, X509ExtensionCollection) .
Bu yöntemdeki nonce değeri işaretsiz, büyük endian tamsayı olarak kabul edilir. Bu yöntem, nonce değerini atamadan önce ber INTEGER kodlamasına girişi normalleştirir. Normalleştirilmiş değer yöntemi tarafından GetNonce() döndürülür.
Ayrıca bkz.
- CreateFromData(ReadOnlySpan<Byte>, HashAlgorithmName, Oid, Nullable<ReadOnlyMemory<Byte>>, Boolean, X509ExtensionCollection)
- CreateFromHash(ReadOnlyMemory<Byte>, Oid, Oid, Nullable<ReadOnlyMemory<Byte>>, Boolean, X509ExtensionCollection)
Şunlara uygulanır
CreateFromHash(ReadOnlyMemory<Byte>, Oid, Oid, Nullable<ReadOnlyMemory<Byte>>, Boolean, X509ExtensionCollection)
- Kaynak:
- Rfc3161TimestampRequest.cs
- Kaynak:
- Rfc3161TimestampRequest.cs
- Kaynak:
- Rfc3161TimestampRequest.cs
- Kaynak:
- Rfc3161TimestampRequest.cs
- Kaynak:
- Rfc3161TimestampRequest.cs
Önceden hesaplanan karma değeri ve karma algoritması için Nesne Tanımlayıcısı'nı kullanarak bir zaman damgası isteği İçerik Oluşturucu.
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
Parametreler
- hash
- ReadOnlyMemory<Byte>
Zaman damgası eklenecek önceden hesaplanan karma değer.
- hashAlgorithmId
- Oid
oluşturan hash
karma algoritması için Nesne Tanımlayıcısı (OID) .
- requestedPolicyId
- Oid
Zaman Damgası Yetkilisi'nin (TSA) kullanması gereken bir zaman damgası ilkesinin Nesne Tanımlayıcısı (OID) veya null
hiçbir tercihi belirtmemesi gerekir.
- nonce
- Nullable<ReadOnlyMemory<Byte>>
Bu isteği yanıtla eşleştirmek için benzersiz olarak tanımlamak için isteğe bağlı bir nonce (bir kez kullanılan sayı). Değer işaretsiz bir büyük endian tamsayı olarak yorumlanır ve kodlama biçimine normalleştirilebilir.
- requestSignerCertificates
- Boolean
true
Zaman Damgası Yetkilisinin (TSA) verilen zaman damgası belirtecine imzalama sertifikasını içermesi gerektiğini belirtmek için; aksi takdirde , false
.
- extensions
- X509ExtensionCollection
İsteğe bağlı olarak isteğe bağlı olarak isteğe bağlı bir uzantı koleksiyonu.
Döndürülenler
Rfc3161TimestampRequest Seçilen değerleri temsil eden.
Özel durumlar
hashAlgorithmId
, null
değeridir.
hashAlgorithmId
öğesini seçin.Value geçerli bir OID değil.
Açıklamalar
Bu yöntemdeki nonce değeri işaretsiz, büyük endian tamsayı olarak kabul edilir. Bu yöntem, nonce değerini atamadan önce ber INTEGER kodlamasına girişi normalleştirir. Normalleştirilmiş değer yöntemi tarafından GetNonce() döndürülür.