× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Mike --

If you override the bypassAuthentication(HttpServletRequest) method in
your class and always return true, then the validateAuthority method
never even gets called.  In your subclass, just include:

public boolean bypassAuthentication(HttpServletRequest req)
{
  return true;
}

and you should be fine.

Is this what you want to do?

Gary


> -----Original Message-----
> From: java400-l-admin@midrange.com
> [mailto:java400-l-admin@midrange.com] On Behalf Of Mike Silvers
> Sent: Monday, January 28, 2002 2:13 AM
> To: java400-l@midrange.com
> Subject: Re: AS400Servlet class
>
>
> Gary,
>
> Sorry, I meant the method validateAuthority, not
> bypassAuthority.  The method validateAuthoirty is final and
> always returns true.  To bypass the validation, this needs to
> be set to false, and, since it is a final method, I can not
> override it.
>
> Mike
>
> ----- Original Message -----
> From: "Gary L Peskin" <garyp@firstech.com>
> To: <java400-l@midrange.com>
> Sent: Sunday, January 27, 2002 1:30 PM
> Subject: RE: AS400Servlet class
>
>
> > Mike --
> >
> > I don't see where bypassAuthentication is a method in
> AS400Servlet at
> > all.  I only see it as a method in AuthenticationServlet and, even
> > there, it isn't final.  What version of JTOpen are you using?
> >
> > Gary
> >
> > > -----Original Message-----
> > > From: java400-l-admin@midrange.com
> > > [mailto:java400-l-admin@midrange.com] On Behalf Of Mike Silvers
> > > Sent: Sunday, January 27, 2002 7:47 AM
> > > To: Java400L List
> > > Subject: AS400Servlet class
> > >
> > >
> > > All,
> > >
> > > I am trying to use the AS400Servlet class to use
> connection pooling.
> > > I am having one problem, and I don't know if it can be overcome.
> > > This class is an extension of the AuthenticationServlet
> class.  The
> > > problem is that the servlet attempts to perform the
> validation.  The
> > > method bypassAuthentication is a final method in the AS400Servlet,
> > > so I can not override this method to prevent the validation.
> > > I am developing on a Win 2000 Pro PC and the servlet tries to
> > > do authentication.  I do not want authentication to be done.
> > > Does anyone have any insight in how to prevent authentication
> > > when using an AS400Servlet?
> > >
> > > My other option is to use a Servlet class and import connection
> > > pools.  I would like to use the AS400Servlet class so I
> don't have
> > > to "reinvent the horse"...
> > >
> > > Thanks
> > >
> > > Mike



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.