Package org.dspace.eperson
Class GoogleCaptchaResponse
- java.lang.Object
-
- org.dspace.eperson.GoogleCaptchaResponse
-
public class GoogleCaptchaResponse extends Object
This model class represent the response for validation of reCaptcha token- Author:
- Mohamed Eskander (mohamed.eskander at 4science dot it)
-
-
Constructor Summary
Constructors Constructor Description GoogleCaptchaResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAction()StringgetChallengeTs()org.dspace.eperson.GoogleCaptchaResponse.ErrorCode[]getErrorCodes()StringgetHostname()floatgetScore()booleanhasClientError()booleanisSuccess()voidsetAction(String action)voidsetChallengeTs(String challengeTs)voidsetErrorCodes(org.dspace.eperson.GoogleCaptchaResponse.ErrorCode[] errorCodes)voidsetHostname(String hostname)voidsetScore(float score)voidsetSuccess(boolean success)
-
-
-
Method Detail
-
isSuccess
public boolean isSuccess()
-
getScore
public float getScore()
-
setScore
public void setScore(float score)
-
getAction
public String getAction()
-
setAction
public void setAction(String action)
-
setSuccess
public void setSuccess(boolean success)
-
getChallengeTs
public String getChallengeTs()
-
setChallengeTs
public void setChallengeTs(String challengeTs)
-
getHostname
public String getHostname()
-
setHostname
public void setHostname(String hostname)
-
getErrorCodes
public org.dspace.eperson.GoogleCaptchaResponse.ErrorCode[] getErrorCodes()
-
setErrorCodes
public void setErrorCodes(org.dspace.eperson.GoogleCaptchaResponse.ErrorCode[] errorCodes)
-
hasClientError
public boolean hasClientError()
-
-