public abstract class QuickAuthenticationHandler extends java.lang.Object implements ClientAuthenticationHandler
Constructor and Description |
---|
QuickAuthenticationHandler() |
Modifier and Type | Method and Description |
---|---|
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.
|
public AuthStatus askAuthentication(ClientHandler handler) throws java.io.IOException, AppException
ClientAuthenticationHandler
askAuthentication
in interface ClientAuthenticationHandler
java.io.IOException
- if io error in socketAppException
- if client socket needs to be closed.public AuthStatus handleAuthentication(ClientHandler handler, java.lang.String data) throws java.io.IOException, AppException
ClientAuthenticationHandler
handleAuthentication
in interface ClientAuthenticationHandler
java.io.IOException
- if io error in socketAppException
- if client socket needs to be closed.public 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 socketAppException
- 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 socketCopyright © 2003-2014 QuickServer.org