| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CaptchaService
Main interface of the package. Used by client applications to expose Captchas Challenge validate the response in a transparent and easy way. The flow of operations for using this service is :
| Method Summary | |
|---|---|
 java.lang.Object | 
getChallengeForID(java.lang.String ID)
Method to retrive the challenge corresponding to the given ticket.  | 
 java.lang.Object | 
getChallengeForID(java.lang.String ID,
                  java.util.Locale locale)
Method to retrive the challenge corresponding to the given ticket.  | 
 java.lang.String | 
getQuestionForID(java.lang.String ID)
Method to retrive the question corresponding to the given ticket.  | 
 java.lang.String | 
getQuestionForID(java.lang.String ID,
                 java.util.Locale locale)
Method to retrive the question corresponding to the given ticket.  | 
 java.lang.Boolean | 
validateResponseForID(java.lang.String ID,
                      java.lang.Object response)
Method to validate a response to the challenge corresponding to the given ticket.  | 
| Method Detail | 
|---|
java.lang.Object getChallengeForID(java.lang.String ID)
                                   throws CaptchaServiceException
ID - ticket
CaptchaServiceException - if the ticket is invalid
java.lang.Object getChallengeForID(java.lang.String ID,
                                   java.util.Locale locale)
                                   throws CaptchaServiceException
ID - ticketlocale - the desired localized capthca
CaptchaServiceException - if the ticket is invalid
java.lang.String getQuestionForID(java.lang.String ID)
                                  throws CaptchaServiceException
ID - ticket
CaptchaServiceException - if the ticket is invalid
java.lang.String getQuestionForID(java.lang.String ID,
                                  java.util.Locale locale)
                                  throws CaptchaServiceException
ID - ticketlocale - the desired localized capthca
CaptchaServiceException - if the ticket is invalid
java.lang.Boolean validateResponseForID(java.lang.String ID,
                                        java.lang.Object response)
                                        throws CaptchaServiceException
ID - ticket
CaptchaServiceException - if the ticket is invalid
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||