games.strategy.engine.lobby.server.login
Class LobbyLoginValidator
java.lang.Object
games.strategy.engine.lobby.server.login.LobbyLoginValidator
- All Implemented Interfaces:
- ILoginValidator
public class LobbyLoginValidator
- extends java.lang.Object
- implements ILoginValidator
|
Method Summary |
java.util.Map<java.lang.String,java.lang.String> |
getChallengeProperties(java.lang.String userName,
java.net.SocketAddress remoteAddress)
The challenge properties to send to the client. |
java.lang.String |
verifyConnection(java.util.Map<java.lang.String,java.lang.String> propertiesSentToClient,
java.util.Map<java.lang.String,java.lang.String> propertiesReadFromClient,
java.lang.String clientName,
java.net.SocketAddress remoteAddress)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOBBY_VERSION
public static final java.lang.String LOBBY_VERSION
- See Also:
- Constant Field Values
REGISTER_NEW_USER_KEY
public static final java.lang.String REGISTER_NEW_USER_KEY
- See Also:
- Constant Field Values
ANONYMOUS_LOGIN
public static final java.lang.String ANONYMOUS_LOGIN
- See Also:
- Constant Field Values
LOGIN_KEY
public static final java.lang.String LOGIN_KEY
- See Also:
- Constant Field Values
HASHED_PASSWORD_KEY
public static final java.lang.String HASHED_PASSWORD_KEY
- See Also:
- Constant Field Values
EMAIL_KEY
public static final java.lang.String EMAIL_KEY
- See Also:
- Constant Field Values
SALT_KEY
public static final java.lang.String SALT_KEY
- See Also:
- Constant Field Values
LobbyLoginValidator
public LobbyLoginValidator()
getChallengeProperties
public java.util.Map<java.lang.String,java.lang.String> getChallengeProperties(java.lang.String userName,
java.net.SocketAddress remoteAddress)
- Description copied from interface:
ILoginValidator
- The challenge properties to send to the client. The client will be sent the challenge properties,
and will be expected to return a properties object to validate its connection.
- Specified by:
getChallengeProperties in interface ILoginValidator
verifyConnection
public java.lang.String verifyConnection(java.util.Map<java.lang.String,java.lang.String> propertiesSentToClient,
java.util.Map<java.lang.String,java.lang.String> propertiesReadFromClient,
java.lang.String clientName,
java.net.SocketAddress remoteAddress)
- Specified by:
verifyConnection in interface ILoginValidator
propertiesReadFromClient - - client properties written by the client after receiving the challange string.clientName - - the user name given by the clientremoteAddress - - the remote adress
- Returns:
- - null if the attempt was successful, an error message otherwise