Ejemplo n.º 1
0
 /// <summary>Destroys the filter.</summary>
 /// <remarks>
 /// Destroys the filter.
 /// <p>
 /// It invokes the
 /// <see cref="AuthenticationHandler.Destroy()"/>
 /// method to release any resources it may hold.
 /// </remarks>
 public virtual void Destroy()
 {
     if (authHandler != null)
     {
         authHandler.Destroy();
         authHandler = null;
     }
     if (secretProvider != null && isInitializedByTomcat)
     {
         secretProvider.Destroy();
         secretProvider = null;
     }
 }
Ejemplo n.º 2
0
 /// <exception cref="Javax.Servlet.ServletException"/>
 protected internal virtual void InitializeAuthHandler(string authHandlerClassName
                                                       , FilterConfig filterConfig)
 {
     try
     {
         Type klass = Thread.CurrentThread().GetContextClassLoader().LoadClass(authHandlerClassName
                                                                               );
         authHandler = (AuthenticationHandler)System.Activator.CreateInstance(klass);
         authHandler.Init(config);
     }
     catch (ReflectiveOperationException ex)
     {
         throw new ServletException(ex);
     }
 }