다음을 통해 공유


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의 모든 타임스탬프 토큰을 항상 에 timestamp따라 정렬할 수 있도록 하려면 이고, false TSA에서 토큰을 만든 시기를 나타내기 위한 timestamp 것입니다.

nonce
Nullable<ReadOnlyMemory<Byte>>

이 타임스탬프 토큰과 연결된 nonce입니다. nonce를 사용하면 항상 재생을 검색할 수 있으므로 사용하는 것이 좋습니다.

timestampAuthorityName
Nullable<ReadOnlyMemory<Byte>>

TSA 이름 식별의 힌트입니다. 응답에 서명한 엔터티의 실제 식별은 항상 인증서 식별자를 사용하여 발생합니다.

extensions
X509ExtensionCollection

타임스탬프와 연결된 확장 값입니다.

예외

ASN.1 데이터가 손상되었습니다.

설명

, messageHash, policyId또는 nonce 가 에 Rfc3161TimestampRequest있는 경우 hashAlgorithmId동일한 값을 사용해야 합니다. accuracyInMicroseconds 가 제공되지 않으면 와 같은 policyId다른 수단을 통해 정확도를 사용할 수 있습니다.

적용 대상