|
QuickServer v1.4.6 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.quickserver.net.server.QuickAuthenticationHandler
This class is used to authenticate a client when it connects to QuickServer. Only single instance of this class will be used per QuickServer to handle all authentication. Should have a default constructor.
Constructor Summary | |
QuickAuthenticationHandler()
|
Method Summary | |
AuthStatus |
askAuthentication(ClientHandler handler)
Method called first time after gotConnected() method is caled on ClientEventHandler, if Authenticator is set. |
AuthStatus |
handleAuthentication(ClientHandler handler,
byte[] data)
Method called when ever a client sends binary data before authentication. |
AuthStatus |
handleAuthentication(ClientHandler handler,
java.lang.Object data)
Method called when ever a client sends Object data before authentication. |
AuthStatus |
handleAuthentication(ClientHandler handler,
java.lang.String data)
Method called when ever a client sends character/string data before authentication. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public QuickAuthenticationHandler()
Method Detail |
public AuthStatus askAuthentication(ClientHandler handler) throws java.io.IOException, AppException
ClientAuthenticationHandler
askAuthentication
in interface ClientAuthenticationHandler
AppException
- if client socket needs to be closed.
java.io.IOException
- if io error in socketpublic AuthStatus handleAuthentication(ClientHandler handler, java.lang.String data) throws java.io.IOException, AppException
ClientAuthenticationHandler
handleAuthentication
in interface ClientAuthenticationHandler
AppException
- if client socket needs to be closed.
java.io.IOException
- if io error in socketpublic AuthStatus handleAuthentication(ClientHandler handler, java.lang.Object data) throws java.io.IOException, AppException
ClientAuthenticationHandler
handleAuthentication
in interface ClientAuthenticationHandler
java.io.IOException
- if io error in socket
AppException
- if client socket needs to be closed.public AuthStatus handleAuthentication(ClientHandler handler, byte[] data) throws java.io.IOException
ClientAuthenticationHandler
handleAuthentication
in interface ClientAuthenticationHandler
java.io.IOException
- if io error in socket
|
QuickServer v1.4.6 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |