PDF SDK Documentation

Comprehensive Guide for Developers: Features, Integration, and API Reference

Loading...
Searching...
No Matches
timestamp_handler.h
1// Copyright (c) 2009-2025 Avanquest Software. All rights reserved.
2
3#ifndef PDFSDK_CXX_PDF_TIMESTAMP_HANDLER_H_INCLUDED_
4#define PDFSDK_CXX_PDF_TIMESTAMP_HANDLER_H_INCLUDED_
5
6#include <cstddef>
7#include <vector>
8
9#include <pdfsdk/cxx/bytes.h>
10
11namespace PDF {
12
27{
28public:
29 virtual ~TimestampHandler() = default;
30
44 virtual size_t EstimateMaxSize() = 0;
45
62 virtual std::vector<Byte> GetTimestampToken(std::span<const Byte> tsReq) = 0;
63};
64
65} // namespace PDF
66
67#endif // PDFSDK_CXX_PDF_TIMESTAMP_HANDLER_H_INCLUDED_
A callback interface for obtaining an RFC 3161 timestamp token.
Definition timestamp_handler.h:27
virtual size_t EstimateMaxSize()=0
Estimate the maximum size of the timestamp token.
virtual std::vector< Byte > GetTimestampToken(std::span< const Byte > tsReq)=0
Sends a DER-encoded RFC 3161 TimeStampReq to a TSA and returns the token.