Sdílet prostřednictvím


Rfc3161TimestampTokenInfo Konstruktor

Definice

Inicializuje novou instanci Rfc3161TimestampTokenInfo třídy se zadanými parametry.

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)

Parametry

policyId
Oid

Identifikátor OID představující zásadu TSA, podle které byla odpověď vytvořena.

hashAlgorithmId
Oid

Hashovací algoritmus OID dat, která mají být označena časovým razítkem.

messageHash
ReadOnlyMemory<Byte>

Hodnota hash dat, která mají být označena časovým razítkem.

serialNumber
ReadOnlyMemory<Byte>

Celé číslo přiřazené TSA k Rfc3161TimestampTokenInfo.

timestamp
DateTimeOffset

Časové razítko zakódované v tokenu.

accuracyInMicroseconds
Nullable<Int64>

Přesnost, se kterou timestamp se porovnává. isOrderingViz také .

isOrdering
Boolean

true zajistit, aby každý token časového razítka od stejného TSA mohl být vždy seřazen na základě , bez ohledu na timestamppřesnost; false aby bylo možné timestamp určit, kdy byl token vytvořen TSA.

nonce
Nullable<ReadOnlyMemory<Byte>>

Hodnota nonce přidružená k tomuto tokenu časového razítka. Použití nonce vždy umožňuje detekovat přehrání, a proto se doporučuje jeho použití.

timestampAuthorityName
Nullable<ReadOnlyMemory<Byte>>

Nápověda v identifikaci názvu TSA. Ke skutečné identifikaci entity, která podepsala odpověď, se vždy použije identifikátor certifikátu.

extensions
X509ExtensionCollection

Hodnoty rozšíření přidružené k časovému razítku.

Výjimky

Data ASN.1 jsou poškozena.

Poznámky

messageHash policyIdPokud hashAlgorithmIdjsou v Rfc3161TimestampRequestsouboru , , nebo nonce , pak by se měla použít stejná hodnota. Pokud accuracyInMicroseconds není k dispozici, může být přesnost dostupná jinými způsoby, jako policyIdje .

Platí pro