esp8266ndn
NDN Arduino library for ESP8266 and more
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
ndnph::ndncert::client::PossessionChallenge Class Reference

The "possession" challenge where client must present an existing certificate. More...

#include <client.hpp>

Inherits ndnph::ndncert::client::Challenge.

Public Member Functions

 PossessionChallenge (Data cert, const PrivateKey &signer)
 
tlv::Value getId () const override
 Return challenge identifier. More...
 
void start (Region &region, ChallengeRequest &request, void(*cb)(void *, bool), void *arg) override
 Create a message to select and start the challenge. More...
 
void next (Region &region, const ChallengeResponse &response, ChallengeRequest &request, void(*cb)(void *, bool), void *arg) override
 Create a message to continue the challenge. More...
 
- Public Member Functions inherited from ndnph::ndncert::client::Challenge
virtual ~Challenge ()=default
 

Detailed Description

The "possession" challenge where client must present an existing certificate.

Constructor & Destructor Documentation

◆ PossessionChallenge()

ndnph::ndncert::client::PossessionChallenge::PossessionChallenge ( Data  cert,
const PrivateKey signer 
)
inlineexplicit

Member Function Documentation

◆ getId()

tlv::Value ndnph::ndncert::client::PossessionChallenge::getId ( ) const
inlineoverridevirtual

Return challenge identifier.

Implements ndnph::ndncert::client::Challenge.

◆ next()

void ndnph::ndncert::client::PossessionChallenge::next ( Region region,
const ChallengeResponse response,
ChallengeRequest request,
void(*)(void *, bool)  cb,
void *  arg 
)
inlineoverridevirtual

Create a message to continue the challenge.

This function should clear any existing state, populate the request , and invoke `cb(arg,true)`; in case of error, invoke `cb(arg,false)`.

Implements ndnph::ndncert::client::Challenge.

◆ start()

void ndnph::ndncert::client::PossessionChallenge::start ( Region region,
ChallengeRequest request,
void(*)(void *, bool)  cb,
void *  arg 
)
inlineoverridevirtual

Create a message to select and start the challenge.

This function should clear any existing state, populate the request , and invoke `cb(arg,true)`; in case of error, invoke `cb(arg,false)`.

Implements ndnph::ndncert::client::Challenge.


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