Public Member Functions | List of all members
ndn::Sha256WithRsaSignature Class Reference

A Sha256WithRsaSignature extends Signature and holds the signature bits and other info representing a SHA256-with-RSA signature in a data packet. More...

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

Inheritance diagram for ndn::Sha256WithRsaSignature:
ndn::Signature

Public Member Functions

virtual ptr_lib::shared_ptr< Signatureclone () const
 Return a pointer to a new Sha256WithRsaSignature which is a copy of this signature.
 
virtual void get (struct ndn_Signature &signatureStruct) const
 Set the signatureStruct to point to the values in this signature object, without copying any memory. More...
 
virtual void set (const struct ndn_Signature &signatureStruct)
 Clear this signature, and set the values by copying from the ndn_Signature struct. More...
 
const Blob &DEPRECATED_IN_NDN_CPP getDigestAlgorithm () const
 
const Blob &DEPRECATED_IN_NDN_CPP getWitness () const
 
virtual const BlobgetSignature () const
 Get the signature bytes. More...
 
const PublisherPublicKeyDigest &DEPRECATED_IN_NDN_CPP getPublisherPublicKeyDigest () const
 
PublisherPublicKeyDigest &DEPRECATED_IN_NDN_CPP getPublisherPublicKeyDigest ()
 
const KeyLocatorgetKeyLocator () const
 
KeyLocatorgetKeyLocator ()
 
void DEPRECATED_IN_NDN_CPP setDigestAlgorithm (const Blob &digestAlgorithm)
 
void DEPRECATED_IN_NDN_CPP setWitness (const Blob &witness)
 
virtual void setSignature (const Blob &signature)
 Set the signature bytes to the given value. More...
 
void DEPRECATED_IN_NDN_CPP setPublisherPublicKeyDigest (const PublisherPublicKeyDigest &publisherPublicKeyDigest)
 
void setKeyLocator (const KeyLocator &keyLocator)
 
void clear ()
 Clear all the fields.
 
virtual uint64_t getChangeCount () const
 Get the change count, which is incremented each time this object (or a child object) is changed. More...
 
- Public Member Functions inherited from ndn::Signature
virtual ~Signature ()
 The virtual destructor.
 

Detailed Description

A Sha256WithRsaSignature extends Signature and holds the signature bits and other info representing a SHA256-with-RSA signature in a data packet.

Member Function Documentation

void ndn::Sha256WithRsaSignature::get ( struct ndn_Signature & signatureStruct  ) const
virtual

Set the signatureStruct to point to the values in this signature object, without copying any memory.

WARNING: The resulting pointers in signatureStruct are invalid after a further use of this object which could reallocate memory.

Parameters
signatureStructa C ndn_Signature struct where the name components array is already allocated.

Implements ndn::Signature.

virtual uint64_t ndn::Sha256WithRsaSignature::getChangeCount ( ) const
inlinevirtual

Get the change count, which is incremented each time this object (or a child object) is changed.

Returns
The change count.

Implements ndn::Signature.

const Blob & ndn::Sha256WithRsaSignature::getDigestAlgorithm ( ) const
Deprecated:
digestAlgorithm is deprecated.
const PublisherPublicKeyDigest& DEPRECATED_IN_NDN_CPP ndn::Sha256WithRsaSignature::getPublisherPublicKeyDigest ( ) const
inline
Deprecated:
. The Signature publisherPublicKeyDigest is deprecated. If you need a publisher public key digest, set the keyLocator keyLocatorType to KEY_LOCATOR_DIGEST and set its key data to the digest.
PublisherPublicKeyDigest& DEPRECATED_IN_NDN_CPP ndn::Sha256WithRsaSignature::getPublisherPublicKeyDigest ( )
inline
Deprecated:
. The Signature publisherPublicKeyDigest is deprecated. If you need a publisher public key digest, set the keyLocator keyLocatorType to KEY_LOCATOR_DIGEST and set its key data to the digest.
const Blob & ndn::Sha256WithRsaSignature::getSignature ( ) const
virtual

Get the signature bytes.

Returns
The signature bytes. If not specified, the value isNull().

Implements ndn::Signature.

const Blob & ndn::Sha256WithRsaSignature::getWitness ( ) const
Deprecated:
Witness is deprecated.
void ndn::Sha256WithRsaSignature::set ( const struct ndn_Signature & signatureStruct  )
virtual

Clear this signature, and set the values by copying from the ndn_Signature struct.

Parameters
signatureStructa C ndn_Signature struct

Implements ndn::Signature.

void ndn::Sha256WithRsaSignature::setDigestAlgorithm ( const Blob digestAlgorithm)
Deprecated:
digestAlgorithm is deprecated.
void DEPRECATED_IN_NDN_CPP ndn::Sha256WithRsaSignature::setPublisherPublicKeyDigest ( const PublisherPublicKeyDigest publisherPublicKeyDigest)
inline
Deprecated:
. The Signature publisherPublicKeyDigest is deprecated. If you need a publisher public key digest, set the keyLocator keyLocatorType to KEY_LOCATOR_DIGEST and set its key data to the digest.
void ndn::Sha256WithRsaSignature::setSignature ( const Blob signature)
virtual

Set the signature bytes to the given value.

Parameters
signatureA Blob with the signature bytes.

Implements ndn::Signature.

void ndn::Sha256WithRsaSignature::setWitness ( const Blob witness)
Deprecated:
Witness is deprecated.

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