massim.framework.connection
Class UsernamePasswordSocketLoginManager

java.lang.Object
  extended by massim.framework.connection.AbstractSocketLoginManager
      extended by massim.framework.connection.UsernamePasswordSocketLoginManager
All Implemented Interfaces:
SocketHandler

public class UsernamePasswordSocketLoginManager
extends AbstractSocketLoginManager


Constructor Summary
UsernamePasswordSocketLoginManager(Account[] accounts, java.util.Map<Account,SocketHandler> socketHandlerMap)
           
 
Method Summary
protected  Authentication getAuthentication(java.net.Socket s)
          This method is called to receive a new Authentification implementing object for a connection.
protected  boolean handleInvalidAuthentication(java.net.Socket s)
          This method is called when an agent did not authenticate.
protected  void handleValidAuthentication(java.net.Socket s)
           
 
Methods inherited from class massim.framework.connection.AbstractSocketLoginManager
getAccountSocketHandlerMap, handleSocket, setAccountSocketHandlerMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsernamePasswordSocketLoginManager

public UsernamePasswordSocketLoginManager(Account[] accounts,
                                          java.util.Map<Account,SocketHandler> socketHandlerMap)
Method Detail

getAuthentication

protected Authentication getAuthentication(java.net.Socket s)
Description copied from class: AbstractSocketLoginManager
This method is called to receive a new Authentification implementing object for a connection.

Specified by:
getAuthentication in class AbstractSocketLoginManager
Returns:
Authentication associated to connection.

handleInvalidAuthentication

protected boolean handleInvalidAuthentication(java.net.Socket s)
Description copied from class: AbstractSocketLoginManager
This method is called when an agent did not authenticate.

Specified by:
handleInvalidAuthentication in class AbstractSocketLoginManager
Parameters:
s - socket

handleValidAuthentication

protected void handleValidAuthentication(java.net.Socket s)
Specified by:
handleValidAuthentication in class AbstractSocketLoginManager


Copyright © 2012. All Rights Reserved.