retdec
Private Attributes | List of all members
retdec::fileinfo::CertificateTable Class Reference

#include <certificate_table.h>

Collaboration diagram for retdec::fileinfo::CertificateTable:
Collaboration graph
[legend]

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::CertificateTabletable = nullptr
 

Detailed Description

Class for certificate table

Member Function Documentation

◆ getCertificateIssuerCommonName()

std::string retdec::fileinfo::CertificateTable::getCertificateIssuerCommonName ( std::size_t  position) const

Get certificate issuer common name

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Common name of selected certificate issuer

◆ getCertificateIssuerCountry()

std::string retdec::fileinfo::CertificateTable::getCertificateIssuerCountry ( std::size_t  position) const

Get certificate issuer country

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Country of selected certificate issuer

◆ getCertificateIssuerEmailAddress()

std::string retdec::fileinfo::CertificateTable::getCertificateIssuerEmailAddress ( std::size_t  position) const

Get certificate issuer email address

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Email address of selected certificate issuer

◆ getCertificateIssuerGenerationQualifier()

std::string retdec::fileinfo::CertificateTable::getCertificateIssuerGenerationQualifier ( std::size_t  position) const

Get certificate issuer generation qualifier

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Generation qualifier of selected certificate issuer

◆ getCertificateIssuerGivenName()

std::string retdec::fileinfo::CertificateTable::getCertificateIssuerGivenName ( std::size_t  position) const

Get certificate issuer given name

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Given name of selected certificate issuer

◆ getCertificateIssuerInitials()

std::string retdec::fileinfo::CertificateTable::getCertificateIssuerInitials ( std::size_t  position) const

Get certificate issuer initials

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Initials of selected certificate issuer

◆ getCertificateIssuerLocality()

std::string retdec::fileinfo::CertificateTable::getCertificateIssuerLocality ( std::size_t  position) const

Get certificate issuer locality

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Locality of selected certificate issuer

◆ getCertificateIssuerNameQualifier()

std::string retdec::fileinfo::CertificateTable::getCertificateIssuerNameQualifier ( std::size_t  position) const

Get certificate issuer name qualifier

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Name qualifier of selected certificate issuer

◆ getCertificateIssuerOrganization()

std::string retdec::fileinfo::CertificateTable::getCertificateIssuerOrganization ( std::size_t  position) const

Get certificate issuer organization

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Organization of selected certificate issuer

◆ getCertificateIssuerOrganizationalUnit()

std::string retdec::fileinfo::CertificateTable::getCertificateIssuerOrganizationalUnit ( std::size_t  position) const

Get certificate issuer organizational unit

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Organizational unit of selected certificate issuer

◆ getCertificateIssuerPseudonym()

std::string retdec::fileinfo::CertificateTable::getCertificateIssuerPseudonym ( std::size_t  position) const

Get certificate issuer pseudonym

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Pseudonym of selected certificate issuer

◆ getCertificateIssuerRaw()

std::string retdec::fileinfo::CertificateTable::getCertificateIssuerRaw ( std::size_t  position) const

Get certificate issuer

Parameters
positionIndex of selected certificate from table (indexed from 0)
Returns
Certificate issuer

◆ getCertificateIssuerSerialNumber()

std::string retdec::fileinfo::CertificateTable::getCertificateIssuerSerialNumber ( std::size_t  position) const

Get certificate issuer serial number

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Serial number of selected certificate issuer

◆ getCertificateIssuerState()

std::string retdec::fileinfo::CertificateTable::getCertificateIssuerState ( std::size_t  position) const

Get certificate issuer state

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
State of selected certificate issuer

◆ getCertificateIssuerSurname()

std::string retdec::fileinfo::CertificateTable::getCertificateIssuerSurname ( std::size_t  position) const

Get certificate issuer surname

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Surname of selected certificate issuer

◆ getCertificateIssuerTitle()

std::string retdec::fileinfo::CertificateTable::getCertificateIssuerTitle ( std::size_t  position) const

Get certificate issuer title

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Title of selected certificate issuer

◆ getCertificatePublicKey()

std::string retdec::fileinfo::CertificateTable::getCertificatePublicKey ( std::size_t  position) const

Get certificate public key

Parameters
positionIndex of selected certificate from table (indexed from 0)
Returns
Public key

◆ getCertificatePublicKeyAlgorithm()

std::string retdec::fileinfo::CertificateTable::getCertificatePublicKeyAlgorithm ( std::size_t  position) const

Get certificate public key algorithm

Parameters
positionIndex of selected certificate from table (indexed from 0)
Returns
Public key algorithm

◆ getCertificateSerialNumber()

std::string retdec::fileinfo::CertificateTable::getCertificateSerialNumber ( std::size_t  position) const

Get certificate serial number

Parameters
positionIndex of selected certificate from table (indexed from 0)
Returns
Serial number

◆ getCertificateSha1Digest()

std::string retdec::fileinfo::CertificateTable::getCertificateSha1Digest ( std::size_t  position) const

Get certificate SHA1 digest

Parameters
positionIndex of selected certificate from table (indexed from 0)
Returns
SHA1 digest

◆ getCertificateSha256Digest()

std::string retdec::fileinfo::CertificateTable::getCertificateSha256Digest ( std::size_t  position) const

Get certificate SHA256 digest

Parameters
positionIndex of selected certificate from table (indexed from 0)
Returns
SHA256 digest

◆ getCertificateSignatureAlgorithm()

std::string retdec::fileinfo::CertificateTable::getCertificateSignatureAlgorithm ( std::size_t  position) const

Get certificate signature algorithm

Parameters
positionIndex of selected certificate from table (indexed from 0)
Returns
Signature algorithm

◆ getCertificateSubjectCommonName()

std::string retdec::fileinfo::CertificateTable::getCertificateSubjectCommonName ( std::size_t  position) const

Get certificate subject common name

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Common name of selected certificate subject

◆ getCertificateSubjectCountry()

std::string retdec::fileinfo::CertificateTable::getCertificateSubjectCountry ( std::size_t  position) const

Get certificate subject country

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Country of selected certificate subject

◆ getCertificateSubjectEmailAddress()

std::string retdec::fileinfo::CertificateTable::getCertificateSubjectEmailAddress ( std::size_t  position) const

Get certificate subject email address

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Email address of selected certificate subject

◆ getCertificateSubjectGenerationQualifier()

std::string retdec::fileinfo::CertificateTable::getCertificateSubjectGenerationQualifier ( std::size_t  position) const

Get certificate subject generation qualifier

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Generation qualifier of selected certificate subject

◆ getCertificateSubjectGivenName()

std::string retdec::fileinfo::CertificateTable::getCertificateSubjectGivenName ( std::size_t  position) const

Get certificate subject given name

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Given name of selected certificate subject

◆ getCertificateSubjectInitials()

std::string retdec::fileinfo::CertificateTable::getCertificateSubjectInitials ( std::size_t  position) const

Get certificate subject initials

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Initials of selected certificate subject

◆ getCertificateSubjectLocality()

std::string retdec::fileinfo::CertificateTable::getCertificateSubjectLocality ( std::size_t  position) const

Get certificate subject locality

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Locality of selected certificate subject

◆ getCertificateSubjectNameQualifier()

std::string retdec::fileinfo::CertificateTable::getCertificateSubjectNameQualifier ( std::size_t  position) const

Get certificate subject name qualifier

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Name qualifier of selected certificate subject

◆ getCertificateSubjectOrganization()

std::string retdec::fileinfo::CertificateTable::getCertificateSubjectOrganization ( std::size_t  position) const

Get certificate subject organization

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Organization of selected certificate subject

◆ getCertificateSubjectOrganizationalUnit()

std::string retdec::fileinfo::CertificateTable::getCertificateSubjectOrganizationalUnit ( std::size_t  position) const

Get certificate subject organizational unit

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Organizational unit of selected certificate subject

◆ getCertificateSubjectPseudonym()

std::string retdec::fileinfo::CertificateTable::getCertificateSubjectPseudonym ( std::size_t  position) const

Get certificate subject pseudonym

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Pseudonym of selected certificate subject

◆ getCertificateSubjectRaw()

std::string retdec::fileinfo::CertificateTable::getCertificateSubjectRaw ( std::size_t  position) const

Get certificate subject

Parameters
positionIndex of selected certificate from table (indexed from 0)
Returns
Certificate subject

◆ getCertificateSubjectSerialNumber()

std::string retdec::fileinfo::CertificateTable::getCertificateSubjectSerialNumber ( std::size_t  position) const

Get certificate subject serial number

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Serial number of selected certificate subject

◆ getCertificateSubjectState()

std::string retdec::fileinfo::CertificateTable::getCertificateSubjectState ( std::size_t  position) const

Get certificate subject state

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
State of selected certificate subject

◆ getCertificateSubjectSurname()

std::string retdec::fileinfo::CertificateTable::getCertificateSubjectSurname ( std::size_t  position) const

Get certificate subject surname

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Surname of selected certificate subject

◆ getCertificateSubjectTitle()

std::string retdec::fileinfo::CertificateTable::getCertificateSubjectTitle ( std::size_t  position) const

Get certificate subject title

Parameters
positionIndex of selected certificate (indexed from 0)
Returns
Title of selected certificate subject

◆ getCertificateValidSince()

std::string retdec::fileinfo::CertificateTable::getCertificateValidSince ( std::size_t  position) const

Get date since when is certificate valid

Parameters
positionIndex of selected certificate from table (indexed from 0)
Returns
Date since when is certificate valid

◆ getCertificateValidUntil()

std::string retdec::fileinfo::CertificateTable::getCertificateValidUntil ( std::size_t  position) const

Get date until when is certificate valid

Parameters
positionIndex of selected certificate from table (indexed from 0)
Returns
Date until when is certificate valid

◆ getCounterSignerCertificateIndex()

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.

Returns
Index of the counter-signer's certificate

◆ getNumberOfCertificates()

std::size_t retdec::fileinfo::CertificateTable::getNumberOfCertificates ( ) const

Get number of certificates in table

Returns
Number of certificates in table

◆ getSignerCertificateIndex()

std::size_t retdec::fileinfo::CertificateTable::getSignerCertificateIndex ( ) const

Get index of the certificate of the signer

Returns
Index of the signer's certificate

◆ hasCounterSignerCertificate()

bool retdec::fileinfo::CertificateTable::hasCounterSignerCertificate ( ) const

Find out if there is counter-signer certificate

Returns
true if there is counter-signer certificate, false otherwise

◆ hasRecords()

bool retdec::fileinfo::CertificateTable::hasRecords ( ) const

Find out if there are any certificates

Returns
true if there are some certificates, false otherwise

◆ hasSignerCertificate()

bool retdec::fileinfo::CertificateTable::hasSignerCertificate ( ) const

Find out if there is signer certificate

Returns
true if there is signer certificate, false otherwise

◆ setTable()

void retdec::fileinfo::CertificateTable::setTable ( const retdec::fileformat::CertificateTable certificateTable)

Set certificate table data

Parameters
certificateTableInstance of class with original information about certificate table

Member Data Documentation

◆ table

const retdec::fileformat::CertificateTable* retdec::fileinfo::CertificateTable::table = nullptr
private

The documentation for this class was generated from the following files: