Class SecretDAO

java.lang.Object
ru.bgcrm.dao.CommonDAO
org.bgerp.plugin.sec.secret.dao.SecretDAO

public class SecretDAO extends CommonDAO
Secret DAO for secrets with 32 ASCII chars, used for accessing URLs.
  • Constructor Details

  • Method Details

    • update

      public String update(String key) throws SQLException
      Updates existing secret or inserts missing with a randomly generated.
      Parameters:
      key - unique ID.
      Returns:
      generated value.
      Throws:
      SQLException
    • get

      public String get(String key) throws SQLException
      Selects secret.
      Parameters:
      key - unique ID.
      Returns:
      found secret or null.
      Throws:
      SQLException