@Test public void testCertificateNotYetValid() throws Exception { RuleResult result = rule.verify(build(TestUtil.loadSignature(SIGNATURE_AGGREGATION_TIME_BEFORE_CERT))); Assert.assertEquals(result.getResultCode(), VerificationResultCode.FAIL); Assert.assertEquals(result.getErrorCode(), VerificationErrorCode.KEY_03); }
public VerificationErrorCode getErrorCode() { return VerificationErrorCode.KEY_03; }
CertificateValidityRule extends BaseRule { public VerificationErrorCode getErrorCode() { return VerificationErrorCode.KEY_03; } }
CertificateValidityRule extends BaseRule { public VerificationErrorCode getErrorCode() { return VerificationErrorCode.KEY_03; }  }
CertificateValidityRule extends BaseRule { public VerificationErrorCode getErrorCode() { return VerificationErrorCode.KEY_03; }  VerificationResultCode verifySignature(VerificationContext context); VerificationErrorCode getErrorCode(); }
CertificateValidityRule extends BaseRule { public VerificationErrorCode getErrorCode() { return VerificationErrorCode.KEY_03; }  VerificationResultCode verifySignature(VerificationContext context); VerificationErrorCode getErrorCode();  }