NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::KeyParams Class Reference

Base class for key parameters. More...

#include <key-params.hpp>

Inheritance diagram for ndn::KeyParams:

Classes

class  Error
 

Public Member Functions

virtual ~KeyParams ()
 
KeyType getKeyType () const
 
KeyIdType getKeyIdType () const
 
const name::ComponentgetKeyId () const
 
void setKeyId (const name::Component &keyId)
 

Protected Member Functions

 KeyParams (KeyType keyType, KeyIdType keyIdType)
 Constructor. More...
 
 KeyParams (KeyType keyType, const name::Component &keyId)
 Constructor. More...
 

Detailed Description

Base class for key parameters.

Its subclasses are used to store parameters for key generation.

Definition at line 35 of file key-params.hpp.

Constructor & Destructor Documentation

◆ ~KeyParams()

ndn::KeyParams::~KeyParams ( )
virtualdefault

Referenced by KeyParams().

◆ KeyParams() [1/2]

ndn::KeyParams::KeyParams ( KeyType  keyType,
KeyIdType  keyIdType 
)
protected

Constructor.

Parameters
keyTypeType of the created key
keyIdTypeThe method how the key id should be generated; must not be KeyIdType::USER_SPECIFIED

Definition at line 26 of file key-params.cpp.

References ndn::USER_SPECIFIED.

Referenced by setKeyId().

◆ KeyParams() [2/2]

ndn::KeyParams::KeyParams ( KeyType  keyType,
const name::Component keyId 
)
protected

Constructor.

Parameters
keyTypeType of the created key
keyIdThe user-specified key id. The keyIdType will be set to KeyIdType::USER_SPECIFIED. keyId MUST NOT be the empty component.
Postcondition
getKeyIdType() == KeyIdType::USER_SPECIFIED

Definition at line 33 of file key-params.cpp.

References ndn::name::Component::empty(), and ~KeyParams().

Member Function Documentation

◆ getKeyType()

◆ getKeyIdType()

KeyIdType ndn::KeyParams::getKeyIdType ( ) const
inline

◆ getKeyId()

const name::Component& ndn::KeyParams::getKeyId ( ) const
inline

◆ setKeyId()

void ndn::KeyParams::setKeyId ( const name::Component keyId)
inline

Definition at line 66 of file key-params.hpp.

References KeyParams().


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