QuickServer
v1.4.5

org.quickserver.net.server
Interface Authenticator

All Known Implementing Classes:
QuickAuthenticator, ServerAuthenticator

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)
          This method is called by QuickServer if ServerAuthenticator was set, to authenticate any client connection.
 

Method Detail

askAuthorisation

public boolean askAuthorisation(ClientHandler clientHandler)
                         throws java.io.IOException,
                                AppException
This method is called by QuickServer if ServerAuthenticator 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.5

Copyright © 2003-2005 QuickServer.org