users@jersey.java.net

getting x.509 certificate principal

From: John Calcote <john.calcote_at_gmail.com>
Date: Wed, 08 Sep 2010 17:50:42 -0600

 I've managed to successfully install a ContainerRequestFilter that
currently just displays (logs) the principal via
ContainerRequest.getUserPrincipal(). When I tested, I found I was
getting an SSL exception - unknown cert (from my browser). I installed
my browser's cert into the truststore, and the SSL error went away, but
the Principal returned is still null.

What do I have to do in Jersey/Spring to get the request's Principal
object to be populated with the X.509 certificate identity (subjectName,
or whatever)? Clearly, I'm missing some wiring here.

Thanks,
John