Package org.dspace.eperson
Class GoogleCaptchaResponse
java.lang.Object
org.dspace.eperson.GoogleCaptchaResponse
This model class represent the response for validation of reCaptcha token
- Author:
- Mohamed Eskander (mohamed.eskander at 4science dot it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.dspace.eperson.GoogleCaptchaResponse.ErrorCode[]floatgetScore()booleanbooleanvoidvoidsetChallengeTs(String challengeTs) voidsetErrorCodes(org.dspace.eperson.GoogleCaptchaResponse.ErrorCode[] errorCodes) voidsetHostname(String hostname) voidsetScore(float score) voidsetSuccess(boolean success)
-
Constructor Details
-
GoogleCaptchaResponse
public GoogleCaptchaResponse()
-
-
Method Details
-
isSuccess
public boolean isSuccess() -
getScore
public float getScore() -
setScore
public void setScore(float score) -
getAction
-
setAction
-
setSuccess
public void setSuccess(boolean success) -
getChallengeTs
-
setChallengeTs
-
getHostname
-
setHostname
-
getErrorCodes
public org.dspace.eperson.GoogleCaptchaResponse.ErrorCode[] getErrorCodes() -
setErrorCodes
public void setErrorCodes(org.dspace.eperson.GoogleCaptchaResponse.ErrorCode[] errorCodes) -
hasClientError
public boolean hasClientError()
-