ITS
SecurityManager Class Reference

#include <SecurityManager.h>

Collaboration diagram for SecurityManager:
[legend]

Public Member Functions

 SecurityManager ()
 SecurityManager SecurityManager constructor. More...
 
 SecurityManager (Manager *man)
 SecurityManager SecurityManager initialization constructor. More...
 
QByteArray certificate () const
 certificate Certificate getter. More...
 
QByteArray signPayload (QByteArray payload, SecurityProfile::e_securityProfileType profile)
 signPayload Sign a payload. More...
 

Private Member Functions

QByteArray securedTrailer (QByteArray payload)
 securedTrailer Adds secured trailer to the payload. More...
 

Private Attributes

ParameterApplicationm_appli
 
ParameterSecuritym_secu
 
FakeGPSProviderm_gps
 
QByteArray m_certificate
 
QByteArray m_privateKey
 
Certificate_t m_certif
 

Detailed Description

Definition at line 18 of file SecurityManager.h.

Constructor & Destructor Documentation

◆ SecurityManager() [1/2]

SecurityManager::SecurityManager ( )

SecurityManager SecurityManager constructor.

Definition at line 3 of file SecurityManager.cpp.

References m_appli, m_gps, and m_secu.

◆ SecurityManager() [2/2]

SecurityManager::SecurityManager ( Manager man)

SecurityManager SecurityManager initialization constructor.

Parameters
manThe Manager.

Definition at line 10 of file SecurityManager.cpp.

References decode_Certificate(), Manager::hashMap, m_appli, m_certif, m_certificate, m_gps, m_privateKey, m_secu, ParameterSecurity::pathToCertificate(), and ParameterSecurity::pathToPrivateKey().

Here is the call graph for this function:

Member Function Documentation

◆ certificate()

QByteArray SecurityManager::certificate ( ) const
inline

certificate Certificate getter.

Returns
The certificate.

Definition at line 36 of file SecurityManager.h.

References m_certificate.

Referenced by GeoNet::getSecuredPayload().

Here is the caller graph for this function:

◆ securedTrailer()

QByteArray SecurityManager::securedTrailer ( QByteArray  payload)
private

◆ signPayload()

QByteArray SecurityManager::signPayload ( QByteArray  payload,
SecurityProfile::e_securityProfileType  profile 
)

signPayload Sign a payload.

Parameters
payloadThe payload to sign.
profileThe profile to use.
Returns
The signed payload.

Definition at line 28 of file SecurityManager.cpp.

References m_certif, m_gps, securedTrailer(), SecurityProfile_CAM::secureHeader(), SecurityProfile::securityProfile_cam, and SignerInfoType_certificate_digest_with_sha256.

Referenced by GeoNet::getSecuredPayload().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_appli

ParameterApplication* SecurityManager::m_appli
private

Application parameters.

Definition at line 47 of file SecurityManager.h.

Referenced by SecurityManager().

◆ m_certif

Certificate_t SecurityManager::m_certif
private

Certificate structure.

Definition at line 53 of file SecurityManager.h.

Referenced by SecurityManager(), and signPayload().

◆ m_certificate

QByteArray SecurityManager::m_certificate
private

Certificate byte array.

Definition at line 51 of file SecurityManager.h.

Referenced by certificate(), and SecurityManager().

◆ m_gps

FakeGPSProvider* SecurityManager::m_gps
private

GPS.

Definition at line 49 of file SecurityManager.h.

Referenced by SecurityManager(), and signPayload().

◆ m_privateKey

QByteArray SecurityManager::m_privateKey
private

Private key.

Definition at line 52 of file SecurityManager.h.

Referenced by SecurityManager().

◆ m_secu

ParameterSecurity* SecurityManager::m_secu
private

Security configuration.

Definition at line 48 of file SecurityManager.h.

Referenced by SecurityManager().


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