@Test public void testRfc3161SignatureProvidedLevelZero() throws Exception { KSISignature signature = TestUtil.loadSignature(RFC3161_SIGNATURE); RuleResult result = rule.verify(build(signature, 0L)); Assert.assertNotNull(result); Assert.assertEquals(result.getResultCode(), VerificationResultCode.OK); Assert.assertNull(result.getErrorCode()); }
VerificationErrorCode getErrorCode() { return VerificationErrorCode.GEN_03; }
InputHashLevelVerificationRule extends BaseRule { VerificationErrorCode getErrorCode() { return VerificationErrorCode.GEN_03; } }
InputHashLevelVerificationRule extends BaseRule { VerificationErrorCode getErrorCode() { return VerificationErrorCode.GEN_03; }  }
InputHashLevelVerificationRule extends BaseRule { VerificationErrorCode getErrorCode() { return VerificationErrorCode.GEN_03; }   }
InputHashLevelVerificationRule extends BaseRule { VerificationErrorCode getErrorCode() { return VerificationErrorCode.GEN_03; }    }