System.Security.Cryptography.Pkcs.Rfc3161TimestampToken
Represents a time-stamp token from IETF RFC 3161.
Gets the details of this time-stamp token as a Rfc3161TimestampTokenInfo.
public static bool TryDecode(ReadOnlyMemory<byte> encodedBytes, out Rfc3161TimestampToken token, out int bytesConsumed)
Attemps to interpret the contents of encodedBytes as a DER-encoded time-stamp token.
Gets a Signed Cryptographic Message Syntax (CMS) representation of the RFC3161 time-stamp token.
public bool VerifySignatureForData(ReadOnlySpan<byte> data, out X509Certificate2 signerCertificate, X509Certificate2Collection extraCandidates = null)
Verifies that the current token is a valid time-stamp token for the provided data.
public bool VerifySignatureForHash(ReadOnlySpan<byte> hash, HashAlgorithmName hashAlgorithm, out X509Certificate2 signerCertificate, X509Certificate2Collection extraCandidates = null)
Verifies that the current token is a valid time-stamp token for the provided data hash and algorithm identifier.
public bool VerifySignatureForHash(ReadOnlySpan<byte> hash, Oid hashAlgorithmId, out X509Certificate2 signerCertificate, X509Certificate2Collection extraCandidates = null)
Verifies that the current token is a valid time-stamp token for the provided data hash and algorithm identifier.
public bool VerifySignatureForSignerInfo(SignerInfo signerInfo, out X509Certificate2 signerCertificate, X509Certificate2Collection extraCandidates = null)
Verifies that the current token is a valid time-stamp token for the provided SignerInfo.