com.opensymphony.user.authenticator
Class SmartAuthenticator

java.lang.Object
  extended bycom.opensymphony.user.authenticator.AbstractAuthenticator
      extended bycom.opensymphony.user.authenticator.SmartAuthenticator
All Implemented Interfaces:
Authenticator, java.io.Serializable

public class SmartAuthenticator
extends AbstractAuthenticator

A 'smart' authenticator that will try to guess which authenticator to use based on what classes are in the classpath.

This is not fool proof but should work well in most cases.

If you write a new Authenticator - please try to update this class.

Author:
Mike Cannon-Brookes
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.opensymphony.user.authenticator.AbstractAuthenticator
properties
 
Constructor Summary
SmartAuthenticator()
           
 
Method Summary
 boolean login(java.lang.String username, java.lang.String password, javax.servlet.http.HttpServletRequest req)
           
 
Methods inherited from class com.opensymphony.user.authenticator.AbstractAuthenticator
init, login
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmartAuthenticator

public SmartAuthenticator()
Method Detail

login

public boolean login(java.lang.String username,
                     java.lang.String password,
                     javax.servlet.http.HttpServletRequest req)
              throws AuthenticationException
Throws:
AuthenticationException

See www.opensymphony.com for more information.