retdec
include
retdec
fileformat
types
certificate_table
certificate_table.h
Go to the documentation of this file.
1
7
#ifndef RETDEC_FILEFORMAT_TYPES_CERTIFICATE_TABLE_CERTIFICATE_TABLE_H
8
#define RETDEC_FILEFORMAT_TYPES_CERTIFICATE_TABLE_CERTIFICATE_TABLE_H
9
10
#include <vector>
11
12
#include "
retdec/fileformat/types/certificate_table/certificate.h
"
13
14
namespace
retdec
{
15
namespace
fileformat
{
16
20
class
CertificateTable
21
{
22
private
:
23
using
certificatesIterator
= std::vector<Certificate>::const_iterator;
25
bool
hasSigner
=
false
;
27
bool
hasCounterSigner
=
false
;
29
std::size_t
signerIndex
= 0;
31
std::size_t
counterSignerIndex
= 0;
33
std::vector<Certificate>
certificates
;
34
public
:
37
std::size_t
getNumberOfCertificates
()
const
;
38
std::size_t
getSignerCertificateIndex
()
const
;
39
std::size_t
getCounterSignerCertificateIndex
()
const
;
40
const
Certificate
*
getCertificate
(std::size_t certIndex)
const
;
42
45
void
setSignerCertificateIndex
(std::size_t certIndex);
46
void
setCounterSignerCertificateIndex
(std::size_t certIndex);
48
51
certificatesIterator
begin
()
const
;
52
certificatesIterator
end
()
const
;
54
57
bool
hasSignerCertificate
()
const
;
58
bool
hasCounterSignerCertificate
()
const
;
59
void
addCertificate
(
const
Certificate
&certificate);
60
bool
empty
()
const
;
62
};
63
64
}
// namespace fileformat
65
}
// namespace retdec
66
67
#endif
certificate.h
Class for one certificate.
retdec::fileformat::CertificateTable
Definition:
certificate_table.h:21
retdec::fileformat::CertificateTable::getSignerCertificateIndex
std::size_t getSignerCertificateIndex() const
Definition:
certificate_table.cpp:25
retdec::fileformat::CertificateTable::certificatesIterator
std::vector< Certificate >::const_iterator certificatesIterator
Definition:
certificate_table.h:23
retdec::fileformat::CertificateTable::hasSignerCertificate
bool hasSignerCertificate() const
Definition:
certificate_table.cpp:102
retdec::fileformat::CertificateTable::hasSigner
bool hasSigner
flag indicating whether signer is present
Definition:
certificate_table.h:25
retdec::fileformat::CertificateTable::addCertificate
void addCertificate(const Certificate &certificate)
Definition:
certificate_table.cpp:120
retdec::fileformat::CertificateTable::hasCounterSigner
bool hasCounterSigner
flag indicating whether counter signer is present
Definition:
certificate_table.h:27
retdec::fileformat::CertificateTable::hasCounterSignerCertificate
bool hasCounterSignerCertificate() const
Definition:
certificate_table.cpp:111
retdec::fileformat::CertificateTable::setCounterSignerCertificateIndex
void setCounterSignerCertificateIndex(std::size_t certIndex)
Definition:
certificate_table.cpp:69
retdec::fileformat::CertificateTable::getCertificate
const Certificate * getCertificate(std::size_t certIndex) const
Definition:
certificate_table.cpp:45
retdec::fileformat::CertificateTable::certificates
std::vector< Certificate > certificates
stored certificates
Definition:
certificate_table.h:33
retdec::fileformat::CertificateTable::setSignerCertificateIndex
void setSignerCertificateIndex(std::size_t certIndex)
Definition:
certificate_table.cpp:54
retdec::fileformat::CertificateTable::begin
certificatesIterator begin() const
Definition:
certificate_table.cpp:84
retdec::fileformat::CertificateTable::getNumberOfCertificates
std::size_t getNumberOfCertificates() const
Definition:
certificate_table.cpp:16
retdec::fileformat::CertificateTable::empty
bool empty() const
Definition:
certificate_table.cpp:129
retdec::fileformat::CertificateTable::getCounterSignerCertificateIndex
std::size_t getCounterSignerCertificateIndex() const
Definition:
certificate_table.cpp:35
retdec::fileformat::CertificateTable::counterSignerIndex
std::size_t counterSignerIndex
index of certificate of the counter-signer
Definition:
certificate_table.h:31
retdec::fileformat::CertificateTable::end
certificatesIterator end() const
Definition:
certificate_table.cpp:93
retdec::fileformat::CertificateTable::signerIndex
std::size_t signerIndex
index of certificate of the signer
Definition:
certificate_table.h:29
retdec::fileformat::Certificate
Definition:
certificate.h:19
fileformat
retdec
Definition:
archive_wrapper.h:19
Generated on Tue Aug 8 2023 10:45:48 for retdec by
1.9.1