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