9e16e87a69
process so that it can be done by other entities than just the client management services. Coordination between these parties is managed so that no toes are stepped on in the course of loading and unloading clients and everything is generally much nicer. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1086 542714f4-19e9-0310-aa3c-eee0fc999fb1
28 lines
843 B
Java
28 lines
843 B
Java
//
|
|
// $Id: DummyAuthenticator.java,v 1.6 2002/03/05 05:33:25 mdb Exp $
|
|
|
|
package com.threerings.presents.server;
|
|
|
|
import com.threerings.presents.Log;
|
|
import com.threerings.presents.net.AuthResponse;
|
|
import com.threerings.presents.net.AuthResponseData;
|
|
import com.threerings.presents.server.net.AuthingConnection;
|
|
|
|
/**
|
|
* A simple authenticator implementation that simply accepts all
|
|
* authentication requests.
|
|
*/
|
|
public class DummyAuthenticator extends Authenticator
|
|
{
|
|
/**
|
|
* Accept all authentication requests.
|
|
*/
|
|
public void authenticateConnection (AuthingConnection conn)
|
|
{
|
|
Log.info("Accepting request: " + conn.getAuthRequest());
|
|
AuthResponseData rdata = new AuthResponseData();
|
|
rdata.code = AuthResponseData.SUCCESS;
|
|
connectionWasAuthenticated(conn, new AuthResponse(rdata));
|
|
}
|
|
}
|