PDF SDK Documentation

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

Loading...
Searching...
No Matches
ltv_handler.h
1// Copyright (c) 2009-2025 Avanquest Software. All rights reserved.
2
3#ifndef PDFSDK_CXX_PDF_LTV_HANDLER_H_INCLUDED_
4#define PDFSDK_CXX_PDF_LTV_HANDLER_H_INCLUDED_
5
6#include <vector>
7
8#include <pdfsdk/cxx/bytes.h>
9
10namespace PDF {
11
25public:
26 virtual ~LTVHandler() = default;
27
39 virtual std::vector<Byte> GetOCSPResponse(
40 [[maybe_unused]] std::span<const Byte> cert,
41 [[maybe_unused]] std::span<const Byte> issuer) {
42 return {};
43 }
44
55 virtual std::vector<Byte> GetCRL(
56 [[maybe_unused]] std::span<const Byte> cert,
57 [[maybe_unused]] std::span<const Byte> issuer) {
58 return {};
59 }
60};
61
62} // namespace PDF
63
64#endif // PDFSDK_CXX_PDF_LTV_HANDLER_H_INCLUDED_
A callback interface for providing revocation data for LTV (Long-Term Validation).
Definition ltv_handler.h:24
virtual std::vector< Byte > GetCRL(std::span< const Byte > cert, std::span< const Byte > issuer)
Return a DER-encoded CRL for a certificate.
Definition ltv_handler.h:55
virtual std::vector< Byte > GetOCSPResponse(std::span< const Byte > cert, std::span< const Byte > issuer)
Return a DER-encoded OCSP response for a certificate.
Definition ltv_handler.h:39