pt.digitalis.dif.utils.extensions
Interface ICaptcha


public interface ICaptcha

Defines the Captcha functionality. @see http://en.wikipedia.org/wiki/CAPTCHA

Author:
Pedro Viegas pviegas@digitalis.pt
Created on:
02/07/2014

Field Summary
static String CAPTCHA_INPUT_ID
          The id of the parameter that has the captcha value
static String CAPTCHA_PRESENT
          The parameter that indicates that a captcha field is present.
 
Method Summary
 String getCaptchaRequiredValue(IDIFContext context)
          Fetches the captcha required generated form the current stage context request
 String getCaptchaSubmitedValue(IDIFContext context)
          Fetches the captcha value form the current stage context request
 boolean isCaptchaValueValid(IDIFContext context)
          Validates the submited captcha value
 

Field Detail

CAPTCHA_INPUT_ID

static final String CAPTCHA_INPUT_ID
The id of the parameter that has the captcha value

See Also:
Constant Field Values

CAPTCHA_PRESENT

static final String CAPTCHA_PRESENT
The parameter that indicates that a captcha field is present.

See Also:
Constant Field Values
Method Detail

getCaptchaRequiredValue

String getCaptchaRequiredValue(IDIFContext context)
Fetches the captcha required generated form the current stage context request

Parameters:
context - the current stage instance context
Returns:
the captcha required value

getCaptchaSubmitedValue

String getCaptchaSubmitedValue(IDIFContext context)
Fetches the captcha value form the current stage context request

Parameters:
context - the current stage instance context
Returns:
the captcha submited value

isCaptchaValueValid

boolean isCaptchaValueValid(IDIFContext context)
Validates the submited captcha value

Parameters:
context - the current stage instance context
Returns:
true if the submited captcha value is valid


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.