I am working on a server to server integration and I want to know from the initiating side of an https request whether client certification authentication was used. Ideally I want to be able to mandate that it is used, however I have no leads on how to achieve this from Java. Currently I am using the Apache Commons Http client.
As I understand from java https client certificate authentication, use of client authentication has to be initiated by the recipient of the https request and I have found nothing client side to mandate it or even to report when it has occurred.
If this behaviour is not possible, then I will probably fall back to encrypting the http payload separately to the https connection. Which means double encryption as https would still be used, and that feels somewhat clunky.