Share via


Rfc3161TimestampTokenInfo Costruttore

Definizione

Inizializza una nuova istanza della classe Rfc3161TimestampTokenInfo con i parametri specificati.

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)

Parametri

policyId
Oid

Un OID che rappresenta il criterio della TSA in base al quale è stata prodotta la risposta.

hashAlgorithmId
Oid

OID dell'algoritmo hash dei dati da specificare.

messageHash
ReadOnlyMemory<Byte>

Valore hash dei dati da timestamp.

serialNumber
ReadOnlyMemory<Byte>

Intero assegnato dal TSA all'oggetto Rfc3161TimestampTokenInfo.

timestamp
DateTimeOffset

Timestamp codificato nel token.

accuracyInMicroseconds
Nullable<Int64>

Accuratezza con cui timestamp viene confrontata. Vedere anche isOrdering.

isOrdering
Boolean

true per assicurarsi che ogni token timestamp dello stesso TSA possa essere sempre ordinato in base timestampa , indipendentemente dall'accuratezza; false per indicare timestamp quando il token è stato creato dal TSA.

nonce
Nullable<ReadOnlyMemory<Byte>>

Nonce associato a questo token timestamp. L'uso di un nonce consente sempre di rilevare le riproduzioni e quindi è consigliabile usarlo.

timestampAuthorityName
Nullable<ReadOnlyMemory<Byte>>

Hint nell'identificazione del nome TSA. L'identificazione effettiva dell'entità che ha firmato la risposta verrà sempre eseguita tramite l'uso dell'identificatore del certificato.

extensions
X509ExtensionCollection

I valori di estensione associati al timestamp.

Eccezioni

I dati ASN.1 sono danneggiati.

Commenti

messageHashSe hashAlgorithmId, , policyIdo nonce sono presenti in Rfc3161TimestampRequest, è necessario utilizzare lo stesso valore. Se accuracyInMicroseconds non viene fornito, l'accuratezza può essere disponibile tramite altri mezzi, ad esempio policyId.

Si applica a