Class: NoVerifyPolicyManager

NoVerifyPolicyManager

new NoVerifyPolicyManager()

Source:

Methods

checkSigningPolicy(dataName, certificateName) → {boolean}

Override to always indicate that the signing certificate name and data name satisfy the signing policy.
Parameters:
Name Type Description
dataName Name The name of data to be signed.
certificateName Name The name of signing certificate.
Source:
Returns:
True to indicate that the signing certificate can be used to sign the data.
Type
boolean

checkVerificationPolicy(dataOrInterest, stepCount, onVerified, onVerifyFailed, wireFormat) → {ValidationRequest}

Override to call onVerified(data) and to indicate no further verification step.
Parameters:
Name Type Description
dataOrInterest Data | Interest The Data object or interest with the signature to check.
stepCount number The number of verification steps that have been done, used to track the verification progress.
onVerified function This does override to call onVerified(dataOrInterest). 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 function Override to ignore this.
wireFormat WireFormat
Source:
Returns:
null for no further step for looking up a certificate chain.
Type
ValidationRequest

inferSigningIdentity(dataName) → {Name}

Override to indicate that the signing identity cannot be inferred.
Parameters:
Name Type Description
dataName Name The name of data to be signed.
Source:
Returns:
An empty name because cannot infer.
Type
Name

requireVerify(dataOrInterest) → {boolean}

Override to return false for no verification rule for the received data or signed interest.
Parameters:
Name Type Description
dataOrInterest Data | Interest The received data packet or interest.
Source:
Returns:
False.
Type
boolean

skipVerifyAndTrust(dataOrInterest) → {boolean}

Override to always skip verification and trust as valid.
Parameters:
Name Type Description
dataOrInterest Data | Interest The received data packet or interest.
Source:
Returns:
True.
Type
boolean