public void verify(List<OCSPResp> ocspResponses,Date atDate){
  if (ocspResponses == null || ocspResponses.isEmpty()) {
    throw new IllegalArgumentException("List of OCSP responses cannot be null or empty");
  }
  verifyImpl(ocspResponses,atDate);
}

public void verify ( List < OCSPResp > ocspResponses , Date atDate ) { if ( ocspResponses == null || ocspResponses . isEmpty ( ) ) { throw new IllegalArgumentException ( "List of OCSP responses cannot be null or empty" ) ; } verifyImpl ( ocspResponses , atDate ) ; }
verifies the certificate chain . first it attempts to build the chain from the certificate to the trusted root certificate , using additional intermediate certificates if provided . then the certificate path is validated . lastly , for each certificate in the chain , the corresponding ocsp response is found and verified . if verification fails , throws codedexception with error code invalidcertpath . . .
