Package crow.game.login.server
Class LoginService
java.lang.Object
crow.game.login.server.LoginService
Service object which contains the logic for running a login service. It's a semi-singleton(1) as
it's shared across all the
LoginSession instances (therefore every client connection) but
it's state is encapsulated in other objects, such as ActiveUserCollection and UserAuthenticator.
(1) it does not need to be a singleton.
-
Constructor Summary
ConstructorsConstructorDescriptionLoginService(ActiveUserCollection activeUsers, UserAuthenticator userAuthenticator, UserLoader userLoader, ServerCollection servers, PendingAuthCollection pendingAuthCollection) -
Method Summary
-
Constructor Details
-
LoginService
public LoginService(ActiveUserCollection activeUsers, UserAuthenticator userAuthenticator, UserLoader userLoader, ServerCollection servers, PendingAuthCollection pendingAuthCollection)
-
-
Method Details
-
login
Processes a login request.- Parameters:
request- The login request object- Returns:
- The response object, which be a
LoginFailedor aLoginSuccess. - Throws:
Exception- on any unexpected error.
-