retdec
|
#include <certificate_table.h>
Public Member Functions | |
Getters | |
std::size_t | getNumberOfCertificates () const |
std::size_t | getSignerCertificateIndex () const |
std::size_t | getCounterSignerCertificateIndex () const |
std::string | getCertificateValidSince (std::size_t position) const |
std::string | getCertificateValidUntil (std::size_t position) const |
std::string | getCertificatePublicKey (std::size_t position) const |
std::string | getCertificatePublicKeyAlgorithm (std::size_t position) const |
std::string | getCertificateSignatureAlgorithm (std::size_t position) const |
std::string | getCertificateSerialNumber (std::size_t position) const |
std::string | getCertificateSha1Digest (std::size_t position) const |
std::string | getCertificateSha256Digest (std::size_t position) const |
std::string | getCertificateSubjectRaw (std::size_t position) const |
std::string | getCertificateIssuerRaw (std::size_t position) const |
std::string | getCertificateIssuerCountry (std::size_t position) const |
std::string | getCertificateIssuerOrganization (std::size_t position) const |
std::string | getCertificateIssuerOrganizationalUnit (std::size_t position) const |
std::string | getCertificateIssuerNameQualifier (std::size_t position) const |
std::string | getCertificateIssuerState (std::size_t position) const |
std::string | getCertificateIssuerCommonName (std::size_t position) const |
std::string | getCertificateIssuerSerialNumber (std::size_t position) const |
std::string | getCertificateIssuerLocality (std::size_t position) const |
std::string | getCertificateIssuerTitle (std::size_t position) const |
std::string | getCertificateIssuerSurname (std::size_t position) const |
std::string | getCertificateIssuerGivenName (std::size_t position) const |
std::string | getCertificateIssuerInitials (std::size_t position) const |
std::string | getCertificateIssuerPseudonym (std::size_t position) const |
std::string | getCertificateIssuerGenerationQualifier (std::size_t position) const |
std::string | getCertificateIssuerEmailAddress (std::size_t position) const |
std::string | getCertificateSubjectCountry (std::size_t position) const |
std::string | getCertificateSubjectOrganization (std::size_t position) const |
std::string | getCertificateSubjectOrganizationalUnit (std::size_t position) const |
std::string | getCertificateSubjectNameQualifier (std::size_t position) const |
std::string | getCertificateSubjectState (std::size_t position) const |
std::string | getCertificateSubjectCommonName (std::size_t position) const |
std::string | getCertificateSubjectSerialNumber (std::size_t position) const |
std::string | getCertificateSubjectLocality (std::size_t position) const |
std::string | getCertificateSubjectTitle (std::size_t position) const |
std::string | getCertificateSubjectSurname (std::size_t position) const |
std::string | getCertificateSubjectGivenName (std::size_t position) const |
std::string | getCertificateSubjectInitials (std::size_t position) const |
std::string | getCertificateSubjectPseudonym (std::size_t position) const |
std::string | getCertificateSubjectGenerationQualifier (std::size_t position) const |
std::string | getCertificateSubjectEmailAddress (std::size_t position) const |
Setters | |
void | setTable (const retdec::fileformat::CertificateTable *certificateTable) |
Other methods | |
bool | hasRecords () const |
bool | hasSignerCertificate () const |
bool | hasCounterSignerCertificate () const |
Private Attributes | |
const retdec::fileformat::CertificateTable * | table = nullptr |
Class for certificate table
std::string retdec::fileinfo::CertificateTable::getCertificateIssuerCommonName | ( | std::size_t | position | ) | const |
Get certificate issuer common name
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateIssuerCountry | ( | std::size_t | position | ) | const |
Get certificate issuer country
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateIssuerEmailAddress | ( | std::size_t | position | ) | const |
Get certificate issuer email address
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateIssuerGenerationQualifier | ( | std::size_t | position | ) | const |
Get certificate issuer generation qualifier
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateIssuerGivenName | ( | std::size_t | position | ) | const |
Get certificate issuer given name
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateIssuerInitials | ( | std::size_t | position | ) | const |
Get certificate issuer initials
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateIssuerLocality | ( | std::size_t | position | ) | const |
Get certificate issuer locality
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateIssuerNameQualifier | ( | std::size_t | position | ) | const |
Get certificate issuer name qualifier
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateIssuerOrganization | ( | std::size_t | position | ) | const |
Get certificate issuer organization
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateIssuerOrganizationalUnit | ( | std::size_t | position | ) | const |
Get certificate issuer organizational unit
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateIssuerPseudonym | ( | std::size_t | position | ) | const |
Get certificate issuer pseudonym
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateIssuerRaw | ( | std::size_t | position | ) | const |
Get certificate issuer
position | Index of selected certificate from table (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateIssuerSerialNumber | ( | std::size_t | position | ) | const |
Get certificate issuer serial number
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateIssuerState | ( | std::size_t | position | ) | const |
Get certificate issuer state
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateIssuerSurname | ( | std::size_t | position | ) | const |
Get certificate issuer surname
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateIssuerTitle | ( | std::size_t | position | ) | const |
Get certificate issuer title
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificatePublicKey | ( | std::size_t | position | ) | const |
Get certificate public key
position | Index of selected certificate from table (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificatePublicKeyAlgorithm | ( | std::size_t | position | ) | const |
Get certificate public key algorithm
position | Index of selected certificate from table (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateSerialNumber | ( | std::size_t | position | ) | const |
Get certificate serial number
position | Index of selected certificate from table (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateSha1Digest | ( | std::size_t | position | ) | const |
Get certificate SHA1 digest
position | Index of selected certificate from table (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateSha256Digest | ( | std::size_t | position | ) | const |
Get certificate SHA256 digest
position | Index of selected certificate from table (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateSignatureAlgorithm | ( | std::size_t | position | ) | const |
Get certificate signature algorithm
position | Index of selected certificate from table (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateSubjectCommonName | ( | std::size_t | position | ) | const |
Get certificate subject common name
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateSubjectCountry | ( | std::size_t | position | ) | const |
Get certificate subject country
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateSubjectEmailAddress | ( | std::size_t | position | ) | const |
Get certificate subject email address
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateSubjectGenerationQualifier | ( | std::size_t | position | ) | const |
Get certificate subject generation qualifier
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateSubjectGivenName | ( | std::size_t | position | ) | const |
Get certificate subject given name
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateSubjectInitials | ( | std::size_t | position | ) | const |
Get certificate subject initials
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateSubjectLocality | ( | std::size_t | position | ) | const |
Get certificate subject locality
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateSubjectNameQualifier | ( | std::size_t | position | ) | const |
Get certificate subject name qualifier
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateSubjectOrganization | ( | std::size_t | position | ) | const |
Get certificate subject organization
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateSubjectOrganizationalUnit | ( | std::size_t | position | ) | const |
Get certificate subject organizational unit
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateSubjectPseudonym | ( | std::size_t | position | ) | const |
Get certificate subject pseudonym
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateSubjectRaw | ( | std::size_t | position | ) | const |
Get certificate subject
position | Index of selected certificate from table (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateSubjectSerialNumber | ( | std::size_t | position | ) | const |
Get certificate subject serial number
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateSubjectState | ( | std::size_t | position | ) | const |
Get certificate subject state
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateSubjectSurname | ( | std::size_t | position | ) | const |
Get certificate subject surname
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateSubjectTitle | ( | std::size_t | position | ) | const |
Get certificate subject title
position | Index of selected certificate (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateValidSince | ( | std::size_t | position | ) | const |
Get date since when is certificate valid
position | Index of selected certificate from table (indexed from 0) |
std::string retdec::fileinfo::CertificateTable::getCertificateValidUntil | ( | std::size_t | position | ) | const |
Get date until when is certificate valid
position | Index of selected certificate from table (indexed from 0) |
std::size_t retdec::fileinfo::CertificateTable::getCounterSignerCertificateIndex | ( | ) | const |
Get index of the certificate of the counter-signer. Returned value should not be used without prior checking of whether the table has counter-signer certificate.
std::size_t retdec::fileinfo::CertificateTable::getNumberOfCertificates | ( | ) | const |
Get number of certificates in table
std::size_t retdec::fileinfo::CertificateTable::getSignerCertificateIndex | ( | ) | const |
Get index of the certificate of the signer
bool retdec::fileinfo::CertificateTable::hasCounterSignerCertificate | ( | ) | const |
Find out if there is counter-signer certificate
true
if there is counter-signer certificate, false
otherwise bool retdec::fileinfo::CertificateTable::hasRecords | ( | ) | const |
Find out if there are any certificates
true
if there are some certificates, false
otherwise bool retdec::fileinfo::CertificateTable::hasSignerCertificate | ( | ) | const |
Find out if there is signer certificate
true
if there is signer certificate, false
otherwise void retdec::fileinfo::CertificateTable::setTable | ( | const retdec::fileformat::CertificateTable * | certificateTable | ) |
Set certificate table data
certificateTable | Instance of class with original information about certificate table |
|
private |