Wiring HTTP client security in Spring

Cantor, Scott cantor.2 at osu.edu
Fri Oct 21 18:41:08 EDT 2016


> 3) Immediately after you invoke the client execute(), invoke the support
> method that sanity checks that the TLS trust engine eval was actually done, if
> applicable, like so:
> 
> HttpResponse response = httpClient.execute(request, context);
> HttpClientSecuritySupport.checkTLSCredentialEvaluated(context,
> request.getURI().getScheme());

Speaking of..

Does it short-circuit the call to the server if the TLS validation fails? If not, that renders it kind of moot, you've already given it the data.

-- Scott



More information about the dev mailing list