다음을 통해 공유


Rfc3161TimestampRequest.CreateFromSignerInfo 메서드

정의

지정된 알고리즘으로 제공된 서명자의 서명을 해시하여 타임스탬프 요청을 만듭니다.

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

매개 변수

signerInfo
SignerInfo

타임스탬프 요청을 빌드할 CMS 서명자 정보입니다.

hashAlgorithm
HashAlgorithmName

이 타임스탬프 요청과 사용할 해시 알고리즘입니다.

requestedPolicyId
Oid

TSA(타임스탬프 인증 기관)에서 사용해야 하는 타임스탬프 정책의 OID(개체 식별자)입니다. 또는 기본 설정을 표시하지 않으려면 null입니다.

nonce
Nullable<ReadOnlyMemory<Byte>>

요청을 응답과 연결하기 위해 해당 요청을 고유하게 식별하는 선택적 nonce(한 번 사용되는 숫자)입니다. 값은 부호 없는 big-endian 정수로 해석되며 인코딩 형식으로 정규화될 수 있습니다.

requestSignerCertificates
Boolean

TSA(타임스탬프 기관)에서 발급한 타임스탬프 토큰에 서명 인증서가 포함되어야 함을 나타내려면 true이고, 그렇지 않으면 false입니다.

extensions
X509ExtensionCollection

요청에 포함할 선택적 확장 컬렉션입니다.

반환

선택한 값을 나타내는 Rfc3161TimestampRequest입니다.

예외

signerInfonull입니다.

hashAlgorithm.Namenull 또는 Empty입니다.

hashAlgorithm은 알려진 해시 알고리즘이 아닙니다.

설명

이 생성자는 IETF RFC 3161 부록 A(CMS를 사용하는 서명 타임스탬프 특성)의 권장 사항에 따라 값의 서명 값 SignerInfo 에 대한 타임스탬프를 만듭니다.

이 메서드의 nonce 값은 부호 없는 big-endian 정수로 처리됩니다. 이 메서드는 nonce 값을 할당하기 전에 BER INTEGER 인코딩에 대한 입력을 정규화합니다. 정규화된 값은 메서드에서 반환됩니다 GetNonce() .

적용 대상

추가 정보