org.apache.geronimo.jetty6
Class NonAuthenticator

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

public class NonAuthenticator
extends Object
implements org.mortbay.jetty.security.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.jetty.security.UserRealm realm, String pathInContext, org.mortbay.jetty.Request request, org.mortbay.jetty.Response 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.jetty.security.UserRealm realm,
                              String pathInContext,
                              org.mortbay.jetty.Request request,
                              org.mortbay.jetty.Response response)
                       throws IOException
Specified by:
authenticate in interface org.mortbay.jetty.security.Authenticator
Throws:
IOException

getAuthMethod

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


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.