Package marauroa.server.game.db
Class LoginSeedDAO
java.lang.Object
marauroa.server.game.db.LoginSeedDAO
data access object for login seeds
- Author:
- hendrik
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.void
useSeed(DBTransaction transaction, String seed)
marks a seed as usedverifySeed(String username, String seed)
Deprecated.verifySeed(DBTransaction transaction, String username, String seed)
verifies a login seed
-
Constructor Details
-
LoginSeedDAO
protected LoginSeedDAO()Creates a new LoginSeedDAO
-
-
Method Details
-
verifySeed
public Boolean verifySeed(DBTransaction transaction, String username, String seed) throws SQLExceptionverifies a login seed- Parameters:
transaction
- DBTransactionusername
- usernameseed
- seed- Returns:
true
, if this seed is already authenticated;false
, if the seed exists but is not authenticated
null
, if the seed does not exist at all- Throws:
SQLException
- in case of an database error
-
useSeed
marks a seed as used- Parameters:
transaction
- DBTransactionseed
- seed- Throws:
SQLException
- in case of an database error
-
verifySeed
Deprecated.checks if the ip-address is temporary blocked because of too many failed login attempts. Blocking ip-addresses is not related to banning ip-addresses.- Parameters:
username
- usernameseed
- seed- Returns:
true
, if this seed is already authenticated;false
, if the seed exists but is not authenticated
null
, if the seed does not exist at all- Throws:
SQLException
- in case of an database error
-
useSeed
Deprecated.marks a seed as used- Parameters:
seed
- seed- Throws:
SQLException
- in case of an database error
-