org.apache.geronimo.jetty
Class NonAuthenticator

java.lang.Object
  extended by org.apache.geronimo.jetty.NonAuthenticator
All Implemented Interfaces:
Serializable, org.mortbay.http.Authenticator

public class NonAuthenticator
extends Object
implements org.mortbay.http.Authenticator

Authenticator that always denies, returning null. Useful when you need to install a default principal/subject in an unsecured web app.

See Also:
Serialized Form

Constructor Summary
NonAuthenticator()
           
 
Method Summary
 Principal authenticate(org.mortbay.http.UserRealm realm, String pathInContext, org.mortbay.http.HttpRequest request, org.mortbay.http.HttpResponse response)
           
 String getAuthMethod()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonAuthenticator

public NonAuthenticator()
Method Detail

authenticate

public Principal authenticate(org.mortbay.http.UserRealm realm,
                              String pathInContext,
                              org.mortbay.http.HttpRequest request,
                              org.mortbay.http.HttpResponse response)
                       throws IOException
Specified by:
authenticate in interface org.mortbay.http.Authenticator
Throws:
IOException

getAuthMethod

public String getAuthMethod()
Specified by:
getAuthMethod in interface org.mortbay.http.Authenticator


Copyright © 2006 Apache Software Foundation. All Rights Reserved.