public VerifyCallbacks(KeyChain chain, ValidationRequest nextStep, int retry, OnVerifyFailed onVerifyFailed, Data originalData) { outer_KeyChain = chain; nextStep_ = nextStep; retry_ = retry; onVerifyFailed_ = onVerifyFailed; originalData_ = originalData; }
public VerifyCallbacksForVerifyInterest(KeyChain chain, ValidationRequest nextStep, int retry, OnVerifyInterestFailed onVerifyFailed, Interest originalInterest) { outer_KeyChain = chain; nextStep_ = nextStep; retry_ = retry; onVerifyFailed_ = onVerifyFailed; originalInterest_ = originalInterest; }
public void verifyInterest(Interest interest, OnVerifiedInterest onVerified, OnVerifyInterestFailed onVerifyFailed, int stepCount) { ILOG.J2CsMapping.Util.Logging.Logger.getLogger(this.GetType().FullName).log(ILOG.J2CsMapping.Util.Logging.Level.INFO, "Enter Verify"); if (policyManager_.requireVerify(interest)) { ValidationRequest nextStep = policyManager_ .checkVerificationPolicy(interest, stepCount, onVerified, onVerifyFailed); if (nextStep != null) { KeyChain.VerifyCallbacksForVerifyInterest callbacks = new KeyChain.VerifyCallbacksForVerifyInterest( this, nextStep, nextStep.retry_, onVerifyFailed, interest); try { face_.expressInterest(nextStep.interest_, callbacks, callbacks); } catch (IOException ex) { try { onVerifyFailed.onVerifyInterestFailed(interest); } catch (Exception exception) { logger_.log(ILOG.J2CsMapping.Util.Logging.Level.SEVERE, "Error in onVerifyInterestFailed", exception); } } } } else if (policyManager_.skipVerifyAndTrust(interest)) { try { onVerified.onVerifiedInterest(interest); } catch (Exception ex_0) { logger_.log(ILOG.J2CsMapping.Util.Logging.Level.SEVERE, "Error in onVerifiedInterest", ex_0); } } else { try { onVerifyFailed.onVerifyInterestFailed(interest); } catch (Exception ex_1) { logger_.log(ILOG.J2CsMapping.Util.Logging.Level.SEVERE, "Error in onVerifyInterestFailed", ex_1); } } }
public VerifyCallbacksForVerifyInterest(KeyChain chain, ValidationRequest nextStep, int retry, OnInterestValidationFailed onValidationFailed, Interest originalInterest) { outer_KeyChain = chain; nextStep_ = nextStep; retry_ = retry; onValidationFailed_ = onValidationFailed; originalInterest_ = originalInterest; }
public VerifyCallbacks(KeyChain chain, ValidationRequest nextStep, int retry, OnDataValidationFailed onValidationFailed, Data originalData) { outer_KeyChain = chain; nextStep_ = nextStep; retry_ = retry; onValidationFailed_ = onValidationFailed; originalData_ = originalData; }