QuickServer
v1.4.7

org.quickserver.net.server
Interface Authenticator

All Known Implementing Classes:
QuickAuthenticator

Deprecated. As of 1.4.6 use ClientAuthenticationHandler

public interface Authenticator

This interface defines a class that can be used by QuickServer to authenticate a client when new connection is made to QuickServer. Should have a default constructor.

Author:
Akshathkumar Shetty

Method Summary
 boolean askAuthorisation(ClientHandler clientHandler)
          Deprecated. This method is called by QuickServer if Authenticator was set, to authenticate any client connection.
 

Method Detail

askAuthorisation

public boolean askAuthorisation(ClientHandler clientHandler)
                         throws java.io.IOException,
                                AppException
Deprecated. 
This method is called by QuickServer if Authenticator was set, to authenticate any client connection.

Returns:
result of authentication.
Throws:
AppException - if ServerAuthenticator wants QuickServer to close the client connection.
Can be used for exiting on Timeouts
Can be used when Quit commands is received when Authenticating.
java.io.IOException - if there is socket error

QuickServer
v1.4.7

Copyright © 2003-2006 QuickServer.org