Public Member Functions | List of all members
ndn::NoVerifyPolicyManager Class Reference
Inheritance diagram for ndn::NoVerifyPolicyManager:
ndn::PolicyManager

Public Member Functions

virtual ~NoVerifyPolicyManager ()
 The virtual destructor.
 
virtual bool skipVerifyAndTrust (const Data &data)
 Override to always skip verification and trust as valid. More...
 
virtual bool skipVerifyAndTrust (const Interest &interest)
 Override to always skip verification and trust as valid. More...
 
virtual bool requireVerify (const Data &data)
 Override to return false for no verification rule for the received data. More...
 
virtual bool requireVerify (const Interest &interest)
 Override to return false for no verification rule for the received interest. More...
 
virtual ptr_lib::shared_ptr< ValidationRequestcheckVerificationPolicy (const ptr_lib::shared_ptr< Data > &data, int stepCount, const OnVerified &onVerified, const OnVerifyFailed &onVerifyFailed)
 Override to call onVerified(data) and to indicate no further verification step. More...
 
virtual ptr_lib::shared_ptr< ValidationRequestcheckVerificationPolicy (const ptr_lib::shared_ptr< Interest > &interest, int stepCount, const OnVerifiedInterest &onVerified, const OnVerifyInterestFailed &onVerifyFailed, WireFormat &wireFormat)
 Override to call onVerified(interest) and to indicate no further verification step. More...
 
virtual bool checkSigningPolicy (const Name &dataName, const Name &certificateName)
 Override to always indicate that the signing certificate name and data name satisfy the signing policy. More...
 
virtual Name inferSigningIdentity (const Name &dataName)
 Override to indicate that the signing identity cannot be inferred. More...
 
- Public Member Functions inherited from ndn::PolicyManager
virtual ~PolicyManager ()
 The virtual destructor.
 

Additional Inherited Members

- Static Protected Member Functions inherited from ndn::PolicyManager
static bool verifySignature (const Signature *signature, const SignedBlob &signedBlob, const Blob &publicKeyDer)
 Check the type of signature and use the publicKeyDer to verify the signedBlob using the appropriate signature algorithm. More...
 
static bool verifySha256WithEcdsaSignature (const Blob &signature, const SignedBlob &signedBlob, const Blob &publicKeyDer)
 Verify the ECDSA signature on the SignedBlob using the given public key. More...
 
static bool verifySha256WithRsaSignature (const Blob &signature, const SignedBlob &signedBlob, const Blob &publicKeyDer)
 Verify the RSA signature on the SignedBlob using the given public key. More...
 
static bool verifyDigestSha256Signature (const Blob &signature, const SignedBlob &signedBlob)
 Verify the DigestSha256 signature on the SignedBlob by verifying that the digest of SignedBlob equals the signature. More...
 

Member Function Documentation

bool ndn::NoVerifyPolicyManager::checkSigningPolicy ( const Name dataName,
const Name certificateName 
)
virtual

Override to always indicate that the signing certificate name and data name satisfy the signing policy.

Parameters
dataNameThe name of data to be signed.
certificateNameThe name of signing certificate.
Returns
true to indicate that the signing certificate can be used to sign the data.

Implements ndn::PolicyManager.

ptr_lib::shared_ptr< ValidationRequest > ndn::NoVerifyPolicyManager::checkVerificationPolicy ( const ptr_lib::shared_ptr< Data > &  data,
int  stepCount,
const OnVerified onVerified,
const OnVerifyFailed onVerifyFailed 
)
virtual

Override to call onVerified(data) and to indicate no further verification step.

Parameters
dataThe Data object with the signature (to ignore).
stepCountThe number of verification steps that have been done, used to track the verification progress.
onVerifiedThis does override to call onVerified(data). NOTE: The library will log any exceptions thrown by this callback, but for better error handling the callback should catch and properly handle any exceptions.
onVerifyFailedOverride to ignore this.
Returns
null for no further step.

Implements ndn::PolicyManager.

ptr_lib::shared_ptr< ValidationRequest > ndn::NoVerifyPolicyManager::checkVerificationPolicy ( const ptr_lib::shared_ptr< Interest > &  interest,
int  stepCount,
const OnVerifiedInterest onVerified,
const OnVerifyInterestFailed onVerifyFailed,
WireFormat wireFormat 
)
virtual

Override to call onVerified(interest) and to indicate no further verification step.

Parameters
interestThe interest with the signature (to ignore).
stepCountThe number of verification steps that have been done, used to track the verification progress.
onVerifiedThis does override to call onVerified(interest). NOTE: The library will log any exceptions thrown by this callback, but for better error handling the callback should catch and properly handle any exceptions.
onVerifyFailedOverride to ignore this.
Returns
null for no further step.

Implements ndn::PolicyManager.

Name ndn::NoVerifyPolicyManager::inferSigningIdentity ( const Name dataName)
virtual

Override to indicate that the signing identity cannot be inferred.

Parameters
dataNameThe name of data to be signed.
Returns
An empty name because cannot infer.

Implements ndn::PolicyManager.

bool ndn::NoVerifyPolicyManager::requireVerify ( const Data data)
virtual

Override to return false for no verification rule for the received data.

Parameters
dataThe received data packet.
Returns
false.

Implements ndn::PolicyManager.

bool ndn::NoVerifyPolicyManager::requireVerify ( const Interest interest)
virtual

Override to return false for no verification rule for the received interest.

Parameters
interestThe received interest.
Returns
false.

Implements ndn::PolicyManager.

bool ndn::NoVerifyPolicyManager::skipVerifyAndTrust ( const Data data)
virtual

Override to always skip verification and trust as valid.

Parameters
dataThe received data packet.
Returns
true.

Implements ndn::PolicyManager.

bool ndn::NoVerifyPolicyManager::skipVerifyAndTrust ( const Interest interest)
virtual

Override to always skip verification and trust as valid.

Parameters
interestThe received interest.
Returns
true.

Implements ndn::PolicyManager.


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