@Test public void testVerifyExtendedCalendarChainTimeDoesNotMatchesWithPublication_Ok() throws Exception { Mockito.when(mockedVerificationContext.getExtendedCalendarHashChain(Mockito.any(Date.class))).thenReturn(TestUtil.loadSignature(Resources.RFC3161_EXTENDED_FOR_PUBLICATIONS_FILE_VERIFICATION).getCalendarHashChain()); RuleResult result = rule.verify(mockedVerificationContext); Assert.assertEquals(result.getResultCode(), VerificationResultCode.FAIL); Assert.assertEquals(result.getErrorCode(), VerificationErrorCode.PUB_02); }
public VerificationErrorCode getErrorCode() { return VerificationErrorCode.PUB_02; }
PublicationsFilePublicationTimeMatchesExtenderResponseRule extends BaseRule { public VerificationErrorCode getErrorCode() { return VerificationErrorCode.PUB_02; } }
PublicationsFilePublicationTimeMatchesExtenderResponseRule extends BaseRule { public VerificationErrorCode getErrorCode() { return VerificationErrorCode.PUB_02; }  }
PublicationsFilePublicationTimeMatchesExtenderResponseRule extends BaseRule { public VerificationErrorCode getErrorCode() { return VerificationErrorCode.PUB_02; }  VerificationResultCode verifySignature(VerificationContext context); VerificationErrorCode getErrorCode(); }
PublicationsFilePublicationTimeMatchesExtenderResponseRule extends BaseRule { public VerificationErrorCode getErrorCode() { return VerificationErrorCode.PUB_02; }  VerificationResultCode verifySignature(VerificationContext context); VerificationErrorCode getErrorCode();  }