ndn::SimplePublicKeyParams< KeyParamsInfo > Class Template Reference

SimplePublicKeyParams is a template for public keys with only one parameter: size. More...

#include <key-params.hpp>

+ Inheritance diagram for ndn::SimplePublicKeyParams< KeyParamsInfo >:
+ Collaboration diagram for ndn::SimplePublicKeyParams< KeyParamsInfo >:

Public Member Functions

 SimplePublicKeyParams (const name::Component &keyId, uint32_t size=KeyParamsInfo::getDefaultSize())
 Create key parameter with user specified keyId. More...
 
 SimplePublicKeyParams (uint32_t size=KeyParamsInfo::getDefaultSize(), KeyIdType keyIdType=KeyIdType::RANDOM)
 Create key parameter with auto-created keyId. More...
 
const name::ComponentgetKeyId () const
 
KeyIdType getKeyIdType () const
 
uint32_t getKeySize () const
 
KeyType getKeyType () const
 
void setKeyId (const name::Component &keyId)
 

Detailed Description

template<typename KeyParamsInfo>
class ndn::SimplePublicKeyParams< KeyParamsInfo >

SimplePublicKeyParams is a template for public keys with only one parameter: size.

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

Constructor & Destructor Documentation

template<typename KeyParamsInfo >
ndn::SimplePublicKeyParams< KeyParamsInfo >::SimplePublicKeyParams ( const name::Component keyId,
uint32_t  size = KeyParamsInfo::getDefaultSize() 
)
inlineexplicit

Create key parameter with user specified keyId.

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

template<typename KeyParamsInfo >
ndn::SimplePublicKeyParams< KeyParamsInfo >::SimplePublicKeyParams ( uint32_t  size = KeyParamsInfo::getDefaultSize(),
KeyIdType  keyIdType = KeyIdType::RANDOM 
)
inlineexplicit

Create key parameter with auto-created keyId.

This method is used only if user does not want to maintain the uniqueness of key name. By default, an 8-byte random number will be used as the key Id.

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

Member Function Documentation

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

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

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

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

template<typename KeyParamsInfo >
uint32_t ndn::SimplePublicKeyParams< KeyParamsInfo >::getKeySize ( ) const
inline

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

KeyType ndn::KeyParams::getKeyType ( ) const
inlineinherited

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

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

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