public class ZipBinaryImageCaptchaClient extends java.lang.Object implements IImageEncodedCaptcha
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CAPTCHA_DATA_FORMAT
This is the captcha format identifier for the class of captchas, which can be handled by
this class implementation.
|
| Constructor and Description |
|---|
ZipBinaryImageCaptchaClient(org.w3c.dom.Element a_captchaEncodedNode)
Creates a new instance of ZipBinaryImageClient, which handles all captchas of the
"ZIP_BINARY_IMAGE" format.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCharacterNumber()
Returns the number of characters which are included in the captcha.
|
java.lang.String |
getCharacterSet()
Returns the character set which was used when the captcha was created.
|
MyImage |
getImage()
Returns the image with the captcha data.
|
byte[] |
solveCaptcha(java.lang.String a_key,
byte[] a_startsWith)
Solves the captcha and returns the encoded information.
|
public static final java.lang.String CAPTCHA_DATA_FORMAT
public ZipBinaryImageCaptchaClient(org.w3c.dom.Element a_captchaEncodedNode)
throws java.lang.Exception
a_captchaEncodedNode - The CaptchaEncoded node with the data of a "ZIP_BINARY_IMAGE"
captcha.java.lang.Exceptionpublic MyImage getImage()
getImage in interface IImageEncodedCaptchapublic java.lang.String getCharacterSet()
getCharacterSet in interface IImageEncodedCaptchapublic int getCharacterNumber()
getCharacterNumber in interface IImageEncodedCaptchapublic byte[] solveCaptcha(java.lang.String a_key,
byte[] a_startsWith)
throws java.lang.Exception
solveCaptcha in interface IImageEncodedCaptchaa_key - The key for solving the captcha (it's the string which is shown in the captcha
image).a_startsWith - byte[]java.lang.ExceptionCopyright © 2023. All rights reserved.