Class LoginSeedDAO

java.lang.Object
marauroa.server.game.db.LoginSeedDAO

public class LoginSeedDAO extends Object
data access object for login seeds
Author:
hendrik
  • Constructor Details

    • LoginSeedDAO

      protected LoginSeedDAO()
      Creates a new LoginSeedDAO
  • Method Details

    • verifySeed

      public Boolean verifySeed(DBTransaction transaction, String username, String seed) throws SQLException
      verifies a login seed
      Parameters:
      transaction - DBTransaction
      username - username
      seed - 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

      public void useSeed(DBTransaction transaction, String seed) throws SQLException
      marks a seed as used
      Parameters:
      transaction - DBTransaction
      seed - seed
      Throws:
      SQLException - in case of an database error
    • verifySeed

      @Deprecated public Boolean verifySeed(String username, String seed) throws SQLException
      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 - username
      seed - 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 public void useSeed(String seed) throws SQLException
      Deprecated.
      marks a seed as used
      Parameters:
      seed - seed
      Throws:
      SQLException - in case of an database error