@@ -53,7 +53,7 @@ void whenThisAndNextUpdateWithinSkew_thenValidationSucceeds() {
5353 var nextUpdateWithinAgeLimit = Date .from (now .minus (THIS_UPDATE_AGE .minusSeconds (2 )));
5454 when (mockResponse .getThisUpdate ()).thenReturn (thisUpdateWithinAgeLimit );
5555 when (mockResponse .getNextUpdate ()).thenReturn (nextUpdateWithinAgeLimit );
56- assertThatCode (() -> validateCertificateStatusUpdateTime (mockResponse , TIME_SKEW , THIS_UPDATE_AGE , OCSP_URL ))
56+ assertThatCode (() -> validateCertificateStatusUpdateTime (mockResponse , TIME_SKEW , THIS_UPDATE_AGE , OCSP_URL , false ))
5757 .doesNotThrowAnyException ();
5858 }
5959
@@ -67,7 +67,7 @@ void whenNextUpdateBeforeThisUpdate_thenThrows() {
6767 when (mockResponse .getNextUpdate ()).thenReturn (beforeThisUpdate );
6868 assertThatExceptionOfType (UserCertificateOCSPCheckFailedException .class )
6969 .isThrownBy (() ->
70- validateCertificateStatusUpdateTime (mockResponse , TIME_SKEW , THIS_UPDATE_AGE , OCSP_URL ))
70+ validateCertificateStatusUpdateTime (mockResponse , TIME_SKEW , THIS_UPDATE_AGE , OCSP_URL , false ))
7171 .withMessageStartingWith ("User certificate revocation check has failed: "
7272 + "Certificate status update time check failed: "
7373 + "nextUpdate '" + beforeThisUpdate .toInstant () + "' is before thisUpdate '" + thisUpdateWithinAgeLimit .toInstant () + "'" );
@@ -81,7 +81,7 @@ void whenThisUpdateHalfHourBeforeNow_thenThrows() {
8181 when (mockResponse .getThisUpdate ()).thenReturn (halfHourBeforeNow );
8282 assertThatExceptionOfType (UserCertificateOCSPCheckFailedException .class )
8383 .isThrownBy (() ->
84- validateCertificateStatusUpdateTime (mockResponse , TIME_SKEW , THIS_UPDATE_AGE , OCSP_URL ))
84+ validateCertificateStatusUpdateTime (mockResponse , TIME_SKEW , THIS_UPDATE_AGE , OCSP_URL , false ))
8585 .withMessageStartingWith ("User certificate revocation check has failed: "
8686 + "Certificate status update time check failed: "
8787 + "thisUpdate '" + halfHourBeforeNow .toInstant () + "' is too old, minimum time allowed: " );
@@ -95,7 +95,7 @@ void whenThisUpdateHalfHourAfterNow_thenThrows() {
9595 when (mockResponse .getThisUpdate ()).thenReturn (halfHourAfterNow );
9696 assertThatExceptionOfType (UserCertificateOCSPCheckFailedException .class )
9797 .isThrownBy (() ->
98- validateCertificateStatusUpdateTime (mockResponse , TIME_SKEW , THIS_UPDATE_AGE , OCSP_URL ))
98+ validateCertificateStatusUpdateTime (mockResponse , TIME_SKEW , THIS_UPDATE_AGE , OCSP_URL , false ))
9999 .withMessageStartingWith ("User certificate revocation check has failed: "
100100 + "Certificate status update time check failed: "
101101 + "thisUpdate '" + halfHourAfterNow .toInstant () + "' is too far in the future, latest allowed: " );
@@ -111,7 +111,7 @@ void whenNextUpdateHalfHourBeforeNow_thenThrows() {
111111 when (mockResponse .getNextUpdate ()).thenReturn (halfHourBeforeNow );
112112 assertThatExceptionOfType (UserCertificateOCSPCheckFailedException .class )
113113 .isThrownBy (() ->
114- validateCertificateStatusUpdateTime (mockResponse , TIME_SKEW , THIS_UPDATE_AGE , OCSP_URL ))
114+ validateCertificateStatusUpdateTime (mockResponse , TIME_SKEW , THIS_UPDATE_AGE , OCSP_URL , false ))
115115 .withMessage ("User certificate revocation check has failed: "
116116 + "Certificate status update time check failed: "
117117 + "nextUpdate '" + halfHourBeforeNow .toInstant () + "' is in the past"
0 commit comments