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
-
dataName | The name of data to be signed. |
certificateName | The name of signing certificate. |
- Returns
- true to indicate that the signing certificate can be used to sign the data.
Implements ndn::PolicyManager.
Override to call onVerified(data) and to indicate no further verification step.
- Parameters
-
data | The Data object with the signature (to ignore). |
stepCount | The number of verification steps that have been done, used to track the verification progress. |
onVerified | This 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. |
onVerifyFailed | Override to ignore this. |
- Returns
- null for no further step.
Implements ndn::PolicyManager.
Override to call onVerified(interest) and to indicate no further verification step.
- Parameters
-
interest | The interest with the signature (to ignore). |
stepCount | The number of verification steps that have been done, used to track the verification progress. |
onVerified | This 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. |
onVerifyFailed | Override 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
-
dataName | The 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
-
data | The 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
-
interest | The 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
-
data | The 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
-
interest | The received interest. |
- Returns
- true.
Implements ndn::PolicyManager.
The documentation for this class was generated from the following files: