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

CHALLENGE request packet. More...

#include <server.hpp>

Inherits ndnph::ndncert::packet_struct::ChallengeRequest< Challenge >.

Public Member Functions

bool fromInterest (Region &region, const Interest &interest, const CaProfile &profile, const uint8_t *requestId, detail::SessionKey &sessionKey, const EcPublicKey &verifier, const ChallengeList &challenges, detail::ISigPolicy &signingPolicy)
 Extract CHALLENGE request from Interest packet. More...
 

Static Public Member Functions

static bool isName (const CaProfile &profile, const Name &name)
 Determine whether name is a valid CHALLENGE request packet name. More...
 
static const uint8_t * parseName (const CaProfile &profile, const Name &name)
 Extract requestId from Interest name. More...
 

Additional Inherited Members

- Public Attributes inherited from ndnph::ndncert::packet_struct::ChallengeRequest< Challenge >
Challenge * challenge
 Challenge reference. More...
 
ParameterKV params
 Parameter key-value pairs. More...
 

Detailed Description

CHALLENGE request packet.

Member Function Documentation

◆ fromInterest()

bool ndnph::ndncert::server::ChallengeRequest::fromInterest ( Region region,
const Interest interest,
const CaProfile profile,
const uint8_t *  requestId,
detail::SessionKey sessionKey,
const EcPublicKey verifier,
const ChallengeList challenges,
detail::ISigPolicy signingPolicy 
)
inline

Extract CHALLENGE request from Interest packet.

Parameters
interestinput Interest packet; it can be freed after this operation.
Returns
whether success.

◆ isName()

static bool ndnph::ndncert::server::ChallengeRequest::isName ( const CaProfile profile,
const Name name 
)
inlinestatic

Determine whether name is a valid CHALLENGE request packet name.

◆ parseName()

static const uint8_t* ndnph::ndncert::server::ChallengeRequest::parseName ( const CaProfile profile,
const Name name 
)
inlinestatic

Extract requestId from Interest name.

Returns
requestId, or nullptr if name is not a valid CHALLENGE request packet name.

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