public class CaptchaGenerator
extends com.github.cage.Cage
Cage
instance that can generate captcha
images similar to YCage
, but adapted to fit Twitter Bootstrap graphically.Modifier and Type | Field and Description |
---|---|
static String |
copyright |
protected static int |
HEIGHT
Height of CAPTCHA image. 20px is the height of a standard Bootstrap input field.
|
protected static char[] |
TOKEN_DEFAULT_CHARACTER_SET
Character set supplied to the
RandomTokenGenerator used by this
template. |
protected static int |
TOKEN_LEN_DELTA
Maximum length of token is 6 +
2.
|
protected static int |
TOKEN_LEN_MIN
Minimum length of token.
|
protected static int |
WIDTH
Width of CAPTCHA image. 220px is the length of a standard Bootstrap input field.
|
Modifier | Constructor and Description |
---|---|
|
CaptchaGenerator()
Constructor.
|
protected |
CaptchaGenerator(Random rnd,
String format) |
|
CaptchaGenerator(String format) |
public static final String copyright
protected static final int HEIGHT
protected static final int WIDTH
protected static final char[] TOKEN_DEFAULT_CHARACTER_SET
RandomTokenGenerator
used by this
template.protected static final int TOKEN_LEN_MIN
protected static final int TOKEN_LEN_DELTA