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,
OnVerifyFailed onVerifyFailed)
Override to call onVerified.onVerified(data) and to indicate no further
verification step.
|
ValidationRequest |
checkVerificationPolicy(Interest interest,
int stepCount,
OnVerifiedInterest onVerified,
OnVerifyInterestFailed onVerifyFailed,
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, verifySignature
public final boolean skipVerifyAndTrust(Data data)
skipVerifyAndTrust
in class PolicyManager
data
- The received data packet.public final boolean skipVerifyAndTrust(Interest interest)
skipVerifyAndTrust
in class PolicyManager
interest
- The received interest.public final boolean requireVerify(Data data)
requireVerify
in class PolicyManager
data
- The received data packet.public final boolean requireVerify(Interest interest)
requireVerify
in class PolicyManager
interest
- The received interest.public final ValidationRequest checkVerificationPolicy(Data data, int stepCount, OnVerified onVerified, OnVerifyFailed onVerifyFailed) throws SecurityException
checkVerificationPolicy
in class PolicyManager
data
- 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.onVerifyFailed
- Override to ignore this.SecurityException
public final ValidationRequest checkVerificationPolicy(Interest interest, int stepCount, OnVerifiedInterest onVerified, OnVerifyInterestFailed onVerifyFailed, WireFormat wireFormat) throws SecurityException
checkVerificationPolicy
in class PolicyManager
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.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.onVerifyFailed
- Override to ignore this.SecurityException
public final boolean checkSigningPolicy(Name dataName, Name certificateName)
checkSigningPolicy
in class PolicyManager
dataName
- The name of data to be signed.certificateName
- The name of signing certificate.public final Name inferSigningIdentity(Name dataName)
inferSigningIdentity
in class PolicyManager
dataName
- The name of data to be signed.Copyright © 2016. All rights reserved.