title: How to get the certificate into the X509 filter (Spring Security)?
body: <p>I need to extract more information than just the CN of the certificate. Currently, I only get the standard UserDetails loadUserByUsername(String arg) where arg is the CN of the certificate. I need to get the X509Certificate object. Is it possible?</p>
  
  <p>on spring security xml file :</p>
  
  <pre><code>&lt;x509 subject-principal-regex="CN=(.*?),"  user-service-ref="myUserDetailsService" /&gt;
  </code></pre>