openDAQ
Open data acquisition platform
ModuleAuthenticatorPtr Class Reference

Module authenticator interface. More...

Inherits ObjectPtr< IModuleAuthenticator >.

Detailed Description

Module authenticator interface.

Public Member Functions

daq::StringPtr authenticateModuleBinary (daq::Bool &binaryValid, const daq::StringPtr &binaryPath) const
 Verify the module binary with a certificate file. More...
 
void setLogger (const daq::LoggerPtr &logger) const
 API call to add allow the openDAQ instance to add it's logger after during construction. More...
 

Member Function Documentation

◆ authenticateModuleBinary()

daq::StringPtr authenticateModuleBinary ( daq::Bool &  binaryValid,
const daq::StringPtr &  binaryPath 
) const
inline

Verify the module binary with a certificate file.

Parameters
binaryPathAbsolute path to the binary.
[out]binaryValidThe binarys checksum matches and it's considered valid.
Returns
Key for the vendor to identify if their certificate was used to authenticate the module.

◆ setLogger()

void setLogger ( const daq::LoggerPtr &  logger) const
inline

API call to add allow the openDAQ instance to add it's logger after during construction.

Because the IModuleAuthenticator is constructed before the openDAQ IInstance and passed to the instance builder, the logger needs to be added seperately. To allow for this, the call needs to be added to the API, as the instance doesn't know the type of ModuleAuthenticatorImpl it's using.

Parameters
loggerThe instance's logger.