public class CaptchaDBManagement extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NAME_CODE_COLUMN |
static String |
NAME_FONT_NAME |
static String |
NAME_ID_COLUMN |
Constructor and Description |
---|
CaptchaDBManagement(SQLManipulator sqlManipilator,
String codesTable,
String fontsTable,
int noIDBits,
String codeChars,
int codeLength) |
Modifier and Type | Method and Description |
---|---|
boolean |
codeCorrect(String id,
String code) |
String |
codeToID(String id) |
String |
createEntry() |
void |
deleteEntry(String id) |
String |
fetchFontName(int entryNo) |
public static final String NAME_ID_COLUMN
public static final String NAME_CODE_COLUMN
public static final String NAME_FONT_NAME
public CaptchaDBManagement(SQLManipulator sqlManipilator, String codesTable, String fontsTable, int noIDBits, String codeChars, int codeLength)
public String codeToID(String id) throws SQLException
SQLException
public String createEntry() throws SQLException
SQLException
public boolean codeCorrect(String id, String code) throws SQLException
SQLException
public void deleteEntry(String id) throws SQLException
SQLException
public String fetchFontName(int entryNo) throws SQLException
SQLException