Not sure it's lined up right, lost in copy/paste I think, the ^ seems to be initially under the (X509Certificate[]) right before the getHttpServletRequest(), so I thought it didn't like the getHttpServletRequest itself, maybe it doesn't like the getAttribute method.
On Wed, Jun 21, 2023 at 1:52 PM Rob Sargent <rsarg...@xmission.com> wrote: > > > > On Jun 21, 2023, at 11:29 AM, Timothy Ward <twardbite...@gmail.com> > wrote: > > > > I tried the following: > > > > import javax.servlet.http.HttpServletRequest; > > import javax.security.cert.Certificate; > > import javax.security.cert.X509Certificate; > > > > X509Certificate[] certs = (X509Certificate[]) > > > getHttpServletRequest().getAttribute("jakarta.servlet.request.X509Certificate"); > > > > and I'm getting: > > > > [Error] (1: 0): GrabCert:33: error: cannot find symbol, > > [Error] (1: 0): X509Certificate[] certs = (X509Certificate[]) > > > getHttpServletRequest().getAttribute("jakarta.servlet.request.X509Certificate");, > > [Error] (1: 0): ^, > > [Error] (1: 0): symbol: method getHttpServletRequest(), > > [Error] (1: 0): location: class GrabCert, [Error] (1: 0): 1 error > > > > If I lined that up correctly, it seems to be pointing at “getAttribute”. > Is your getHttpServletRequest giving you what you expect? > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >