ecologylab.services.authentication.nio
Class AuthClientSessionManager

java.lang.Object
  extended by ecologylab.generic.Debug
      extended by ecologylab.services.distributed.server.clientsessionmanager.AbstractClientSessionManager
          extended by ecologylab.services.distributed.server.clientsessionmanager.ClientSessionManager
              extended by ecologylab.services.authentication.nio.AuthClientSessionManager
All Implemented Interfaces:
AuthMessages, AuthServerRegistryObjects, NetworkingConstants, ServerConstants

public class AuthClientSessionManager
extends ClientSessionManager
implements ServerConstants, AuthServerRegistryObjects, AuthMessages

Stores information about the connection context for the client, including authentication status. Only executes requests from an authenticated client. Should be extended for more specific implementations. Handles accumulating incoming messages and translating them into RequestMessage objects.

Author:
Zachary O. Toups (toupsz@cs.tamu.edu)
See Also:
ClientSessionManager

Field Summary
 
Fields inherited from class ecologylab.services.distributed.server.clientsessionmanager.AbstractClientSessionManager
SESSION_ID
 
Fields inherited from interface ecologylab.services.distributed.common.ServerConstants
GARBAGE_CONNECTION_CLEANUP_TIMEOUT, MAX_CONNECTIONS, MAXIMUM_TRANSMISSION_ERRORS
 
Fields inherited from interface ecologylab.services.distributed.common.NetworkingConstants
CHARACTER_ENCODING, CHARSET, CONTENT_LENGTH_STRING, CONTENT_LENGTH_STRING_LENGTH, DECODER, DEFAULT_IDLE_TIMEOUT, DEFAULT_MAX_MESSAGE_LENGTH_CHARS, ENCODER, HTTP_ACCEPT_ENCODING, HTTP_ACCEPTED_ENCODINGS, HTTP_CONTENT_CODING, HTTP_DEFLATE_ENCODING, HTTP_HEADER_LINE_DELIMITER, HTTP_HEADER_TERMINATOR, MAX_HTTP_HEADER_LENGTH, UNIQUE_IDENTIFIER_STRING
 
Fields inherited from interface ecologylab.services.authentication.registryobjects.AuthServerRegistryObjects
MAIN_AUTHENTICATABLE
 
Fields inherited from interface ecologylab.services.authentication.messages.AuthMessages
LOGIN_FAILED_LOGGEDIN, LOGIN_FAILED_NO_IP_SUPPLIED, LOGIN_FAILED_PASSWORD, LOGIN_SUCCESSFUL, LOGOUT_FAILED_IP_MISMATCH, LOGOUT_FAILED_NOT_LOGGEDIN, LOGOUT_SUCCESSFUL, REQUEST_FAILED_NOT_AUTHENTICATED
 
Constructor Summary
AuthClientSessionManager(java.lang.Object token, int maxPacketSize, NIOServerIOThread server, NIOServerProcessor frontend, java.nio.channels.SelectionKey sk, TranslationScope translationSpace, Scope registry, AuthLogging servicesServer, Authenticator authenticator)
          Constructs a new AuthClientSessionManager on a server to handle authenticating client requests.
 
Method Summary
 
Methods inherited from class ecologylab.services.distributed.server.clientsessionmanager.AbstractClientSessionManager
getHandle, getLastActivity, getScope, getSessionId, getSocketKey, isInitialized, isInvalidating, isMessageWaiting, processAllMessagesAndSendResponses, processIncomingSequenceBufToQueue, sendUpdateToClient, setInvalidating, setSocket, shutdown
 
Methods inherited from class ecologylab.generic.Debug
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, toString, warning, warning, weird, weird
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthClientSessionManager

public AuthClientSessionManager(java.lang.Object token,
                                int maxPacketSize,
                                NIOServerIOThread server,
                                NIOServerProcessor frontend,
                                java.nio.channels.SelectionKey sk,
                                TranslationScope translationSpace,
                                Scope registry,
                                AuthLogging servicesServer,
                                Authenticator authenticator)
Constructs a new AuthClientSessionManager on a server to handle authenticating client requests.

Parameters:
token -
maxPacketSize -
server -
frontend -
socket -
translationSpace -
registry -
servicesServer -