예제 #1
0
        private static VerificationResult doVerify(PolicyManager policyManager,
				Interest toVerify)
        {
            VerificationResult verificationResult = new VerificationResult();

            ValidationRequest result = policyManager.checkVerificationPolicy(
                    toVerify, 0, verificationResult, verificationResult,
                    net.named_data.jndn.encoding.WireFormat.getDefaultWireFormat());

            verificationResult.hasFurtherSteps_ = (result != null);
            return verificationResult;
        }
예제 #2
0
        private static VerificationResult doVerify(PolicyManager policyManager,
				Data toVerify)
        {
            VerificationResult verificationResult = new VerificationResult();

            ValidationRequest result = policyManager.checkVerificationPolicy(
                    toVerify, 0, verificationResult, verificationResult);

            verificationResult.hasFurtherSteps_ = (result != null);
            return verificationResult;
        }