Files
narya/src/java/com/threerings/presents/server/Authenticator.java
T
Michael Bayne 8a4c46badc The first great Three Rings renaming. Cocktail changed to Narya, Cher
changed to Presents and Party changed to Crowd. Whee!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@431 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-11 04:07:54 +00:00

27 lines
1.0 KiB
Java

//
// $Id: Authenticator.java,v 1.3 2001/10/11 04:07:53 mdb Exp $
package com.threerings.presents.server.net;
import com.threerings.presents.net.AuthRequest;
import com.threerings.presents.net.AuthResponse;
/**
* The authenticator is a pluggable component of the authentication
* framework. It is provided with an auth request object and is expected
* to return an auth response object indicating whether or not the client
* is authenticated. <code>authenticate()</code> is invoked on the authmgr
* thread which means that it can access databases or other external
* (slow) information sources without concern for unduly blocking the
* normal operation of the server. Of course, authentication requests are
* processed serially, so they shouldn't take <em>too</em> long.
*/
public interface Authenticator
{
/**
* Requests that the authenticator process the supplied request and
* provide a response object indicating success or failure.
*/
public AuthResponse process (AuthRequest request);
}