RE: Possible to Authenticate from Servlet/Webapp Code?

2004-12-08 Thread Sawlor . TM
Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, 7, December, 2004 11:51 AM To: Tomcat Users List Subject: RE: Possible to Authenticate from Servlet/Webapp Code? Hi, The Spec-mandated, and therefore portable, approach is via the web.xml declarative security. The Tomcat

RE: Possible to Authenticate from Servlet/Webapp Code?

2004-12-07 Thread Shapira, Yoav
Hi, The Spec-mandated, and therefore portable, approach is via the web.xml declarative security. The Tomcat-specific way would mean you navigate down the container hierarchy, starting with ServerFactory.getServer, down to Service, Engine, Host, to find your Realm object. You could probably do