title: HttpServlet - How to know if SSL Client Authentication is used
body: <p>I have a <code>Servlet</code> container (Glassfish/OC4J) which service some JAX-WS web service endpoints which can be reach using HTTPS. The SSL is configured to support both Client Authentication and Server only authentication (like client-auth="want" on Glassfish). </p>
  
  <p>In my endpoint implementation I want to know if the connection was done with or without Client authentication. I already have access to the <code>HttpServletRequest</code> object, but the <code>getAuthType()</code> method is always returning null, no mater if Client auth is done or not (checked using wireshark to be sure it does what I want).</p>
  
  <p>Does anybody knows how to have access to such info ?</p>
  
  <p>Thanks a lot</p>