net.named_data.jndn.security.policy
public class NoVerifyPolicyManager extends PolicyManager
| Constructor and Description |
|---|
NoVerifyPolicyManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkSigningPolicy(Name dataName,
Name certificateName)
Override to always indicate that the signing certificate name and data name
satisfy the signing policy.
|
ValidationRequest |
checkVerificationPolicy(Data data,
int stepCount,
OnVerified onVerified,
OnDataValidationFailed onValidationFailed)
Override to call onVerified.onVerified(data) and to indicate no further
verification step.
|
ValidationRequest |
checkVerificationPolicy(Interest interest,
int stepCount,
OnVerifiedInterest onVerified,
OnInterestValidationFailed onValidationFailed,
WireFormat wireFormat)
Override to call onVerified.onVerifiedInterest(interest) and to indicate no
further verification step.
|
Name |
inferSigningIdentity(Name dataName)
Override to indicate that the signing identity cannot be inferred.
|
boolean |
requireVerify(Data data)
Override to return false for no verification rule for the received data.
|
boolean |
requireVerify(Interest interest)
Override to return false for no verification rule for the received interest.
|
boolean |
skipVerifyAndTrust(Data data)
Override to always skip verification and trust as valid.
|
boolean |
skipVerifyAndTrust(Interest interest)
Override to always skip verification and trust as valid.
|
checkVerificationPolicy, verifyDigestSha256Signature, verifySha256WithEcdsaSignature, verifySha256WithRsaSignature, verifySignaturepublic final boolean skipVerifyAndTrust(Data data)
skipVerifyAndTrust in class PolicyManagerdata - The received data packet.public final boolean skipVerifyAndTrust(Interest interest)
skipVerifyAndTrust in class PolicyManagerinterest - The received interest.public final boolean requireVerify(Data data)
requireVerify in class PolicyManagerdata - The received data packet.public final boolean requireVerify(Interest interest)
requireVerify in class PolicyManagerinterest - The received interest.public final ValidationRequest checkVerificationPolicy(Data data, int stepCount, OnVerified onVerified, OnDataValidationFailed onValidationFailed) throws SecurityException
checkVerificationPolicy in class PolicyManagerdata - The Data object with the signature to check.stepCount - The number of verification steps that have been done, used
to track the verification progress.onVerified - This does override to call onVerified.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.onValidationFailed - Override to ignore this.SecurityExceptionpublic final ValidationRequest checkVerificationPolicy(Interest interest, int stepCount, OnVerifiedInterest onVerified, OnInterestValidationFailed onValidationFailed, WireFormat wireFormat) throws SecurityException
checkVerificationPolicy in class PolicyManagerinterest - 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.onVerifiedInterest(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.onValidationFailed - Override to ignore this.SecurityExceptionpublic final boolean checkSigningPolicy(Name dataName, Name certificateName)
checkSigningPolicy in class PolicyManagerdataName - The name of data to be signed.certificateName - The name of signing certificate.public final Name inferSigningIdentity(Name dataName)
inferSigningIdentity in class PolicyManagerdataName - The name of data to be signed.Copyright © 2016. All rights reserved.