|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.captcha.ReCaptchaAdapter
public class ReCaptchaAdapter
Adapter for recaptcha-library.
The configured ReCaptchaAdapter will be available through
Lifecycle.
Lifecycle.getCaptchaAdapter()| Constructor Summary | |
|---|---|
ReCaptchaAdapter()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDivId()
Returns the id of the div which is to be replaced by the recaptcha. |
java.lang.String |
getPrivateKey()
Returns the private key. |
java.lang.String |
getPublicKey()
Returns the public key. |
void |
initialize(ReCaptchaAdapterConfig conf)
Initialises the ReCaptchaAdapter with the given
Configuration. |
AbstractCaptchaResponse |
validate(ServiceRequest request)
Performs the validation-request of the recaptcha for the given request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReCaptchaAdapter()
| Method Detail |
|---|
public final AbstractCaptchaResponse validate(ServiceRequest request)
validate in interface ICaptchaAdapter<ReCaptchaAdapterConfig>request - the ServiceRequest
AbstractCaptchaResponsepublic final java.lang.String getPublicKey()
getPublicKey in interface ICaptchaAdapter<ReCaptchaAdapterConfig>public final java.lang.String getPrivateKey()
getPrivateKey in interface ICaptchaAdapter<ReCaptchaAdapterConfig>public final java.lang.String getDivId()
getDivId in interface ICaptchaAdapter<ReCaptchaAdapterConfig>public final void initialize(ReCaptchaAdapterConfig conf)
ReCaptchaAdapter with the given
Configuration.
initialize in interface Configurable<ReCaptchaAdapterConfig>conf - the Configuration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||