Rfc3161TimestampRequest.CreateFromSignerInfo 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.
Sağlanan imzalayanın imzasını belirtilen bir algoritmayla karma oluşturarak bir zaman damgası isteği oluşturur.
public static System.Security.Cryptography.Pkcs.Rfc3161TimestampRequest CreateFromSignerInfo (System.Security.Cryptography.Pkcs.SignerInfo signerInfo, 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 CreateFromSignerInfo (System.Security.Cryptography.Pkcs.SignerInfo signerInfo, 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 CreateFromSignerInfo : System.Security.Cryptography.Pkcs.SignerInfo * 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 CreateFromSignerInfo (signerInfo As SignerInfo, 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
- signerInfo
- SignerInfo
Zaman damgası isteği oluşturmak için CMS imzalayan bilgileri.
- hashAlgorithm
- HashAlgorithmName
Bu zaman damgası isteğiyle kullanılacak 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>>
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
signerInfo
, null
değeridir.
hashAlgorithm
bilinen bir karma algoritması değildir.
Açıklamalar
Bu oluşturucu, IETF RFC 3161 Ek A (CMS kullanarak İmza Zaman Damgası özniteliği) önerisine göre bir SignerInfo değerin imza değeri için bir zaman damgası oluşturur.
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.