ndn::security::ValidationRequest Class Reference

ValidationRequest contains information related to further validation. More...

#include <validation-request.hpp>

+ Collaboration diagram for ndn::security::ValidationRequest:

Public Member Functions

 ValidationRequest (const Interest &interest, const OnDataValidated &onDataValidated, const OnDataValidationFailed &onDataValidationFailed, int nRetries, int nSteps, uint64_t requesterFaceId=0)
 

Public Attributes

Interest m_interest
 the Interest for the requested data/certificate. More...
 
int m_nRetries
 the number of retries when the interest times out. More...
 
int m_nSteps
 the number of validation steps that have been performed. More...
 
OnDataValidated m_onDataValidated
 callback when the retrieved certificate is authenticated. More...
 
OnDataValidationFailed m_onDataValidationFailed
 callback when the retrieved certificate cannot be authenticated. More...
 
uint64_t m_requesterFaceId
 the incoming face id of the origin packet. More...
 

Detailed Description

ValidationRequest contains information related to further validation.

During a validation process, validator may not have retrieved the corresponding public key of the signature in a packet. ValidationRequest contains the interest for the certificate that carries the public key and also contains the context for the certificate including how to proceed when the public key is authenticated or not, the number of validation steps that have been performed, and how to handle interest timeout.

Definition at line 53 of file validation-request.hpp.

Constructor & Destructor Documentation

ndn::security::ValidationRequest::ValidationRequest ( const Interest interest,
const OnDataValidated onDataValidated,
const OnDataValidationFailed onDataValidationFailed,
int  nRetries,
int  nSteps,
uint64_t  requesterFaceId = 0 
)
inline

Definition at line 56 of file validation-request.hpp.

Member Data Documentation

Interest ndn::security::ValidationRequest::m_interest

the Interest for the requested data/certificate.

Definition at line 71 of file validation-request.hpp.

int ndn::security::ValidationRequest::m_nRetries

the number of retries when the interest times out.

Definition at line 77 of file validation-request.hpp.

int ndn::security::ValidationRequest::m_nSteps

the number of validation steps that have been performed.

Definition at line 79 of file validation-request.hpp.

OnDataValidated ndn::security::ValidationRequest::m_onDataValidated

callback when the retrieved certificate is authenticated.

Definition at line 73 of file validation-request.hpp.

OnDataValidationFailed ndn::security::ValidationRequest::m_onDataValidationFailed

callback when the retrieved certificate cannot be authenticated.

Definition at line 75 of file validation-request.hpp.

uint64_t ndn::security::ValidationRequest::m_requesterFaceId

the incoming face id of the origin packet.

Definition at line 81 of file validation-request.hpp.