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

Represents a signature of Sha256WithRsa type. More...

#include <signature-sha256-with-rsa.hpp>

Inheritance diagram for ndn::SignatureSha256WithRsa:
Collaboration diagram for ndn::SignatureSha256WithRsa:

Public Member Functions

 SignatureSha256WithRsa (const KeyLocator &keyLocator=KeyLocator())
 Create Sha256WithRsa signature with specified KeyLocator. More...
 
 SignatureSha256WithRsa (const Signature &signature)
 Convert base Signature to Sha256WithRsa signature. More...
 
- Public Member Functions inherited from ndn::Signature
 Signature ()=default
 
 Signature (const Block &info, const Block &value=Block())
 
 Signature (const SignatureInfo &info, const Block &value=Block())
 
 operator bool () const
 Determine whether SignatureInfo is valid. More...
 
const SignatureInfogetSignatureInfo () const
 Get SignatureInfo. More...
 
const BlockgetInfo () const
 Get SignatureInfo as wire format. More...
 
void setInfo (const Block &info)
 Decode SignatureInfo from wire format. More...
 
void setInfo (const SignatureInfo &info)
 Set SignatureInfo. More...
 
const BlockgetValue () const
 Get SignatureValue. More...
 
void setValue (const Block &value)
 Set SignatureValue. More...
 
tlv::SignatureTypeValue getType () const
 Get SignatureType. More...
 
bool hasKeyLocator () const
 Check if KeyLocator exists in SignatureInfo. More...
 
const KeyLocatorgetKeyLocator () const
 Get KeyLocator. More...
 
void setKeyLocator (const KeyLocator &keyLocator)
 Set KeyLocator. More...
 
void unsetKeyLocator ()
 Unset KeyLocator. More...
 

Additional Inherited Members

- Protected Attributes inherited from ndn::Signature
SignatureInfo m_info
 
Block m_value
 

Detailed Description

Represents a signature of Sha256WithRsa type.

This signature type provides integrity and provenance protection using a RSA signature over a SHA-256 digest.

Definition at line 34 of file signature-sha256-with-rsa.hpp.

Constructor & Destructor Documentation

◆ SignatureSha256WithRsa() [1/2]

ndn::SignatureSha256WithRsa::SignatureSha256WithRsa ( const KeyLocator keyLocator = KeyLocator())
explicit

Create Sha256WithRsa signature with specified KeyLocator.

Definition at line 26 of file signature-sha256-with-rsa.cpp.

◆ SignatureSha256WithRsa() [2/2]

ndn::SignatureSha256WithRsa::SignatureSha256WithRsa ( const Signature signature)
explicit

Convert base Signature to Sha256WithRsa signature.

Exceptions
Signature::ErrorSignatureType is not Sha256WithRsa

Definition at line 31 of file signature-sha256-with-rsa.cpp.

References ndn::Signature::getType(), ndn::Signature::hasKeyLocator(), NDN_THROW, ndn::tlv::SignatureSha256WithRsa, and ndn::to_string().


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