public final class AudioCaptcha extends Object
Example for generating a new CAPTCHA:
AudioCaptcha ac = new AudioCaptcha.Builder() .addAnswer() .addNoise() .build();
Note that the build() method must always be called last. Other
methods are optional.
| Modifier and Type | Class and Description |
|---|---|
static class |
AudioCaptcha.Builder
Captcha class builder.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAnswer()
Returns the answer for captcha.
|
Sample |
getChallenge()
Returns the audio sample of captcha.
|
boolean |
isCorrect(String answer)
Returns true if specified answer if correct, otherwise false.
|
public boolean isCorrect(String answer)
answer - answer for captcha.public String getAnswer()
public Sample getChallenge()
Copyright © 2015. All rights reserved.