com.techventus.server.voice.exception.CaptchaRequiredException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-voice-java Show documentation
Show all versions of google-voice-java Show documentation
An Unofficial Java API for Google Voice
The newest version!
package com.techventus.server.voice.exception;
public class CaptchaRequiredException extends AuthenticationException {
private static final long serialVersionUID = -8965049712183837356L;
/**
* Token representing the specific Captcha challenge. Google supplies this token and the
* CAPTCHA image URL in a login failed response with the error code "CaptchaRequired".
*/
private String captchaToken = null;
/**
* URL of the Captcha image.
*/
private String captchaUrl = null;
public CaptchaRequiredException(String captchaToken, String captchaUrl) {
super(ERROR_CODE.CaptchaRequired);
this.captchaToken = captchaToken;
this.captchaUrl = captchaUrl;
}
/**
* @return Token representing the specific Captcha challenge. Google supplies this token
* and the CAPTCHA image URL in a login failed response with the error code
* "CaptchaRequired".
*/
public String getCaptchaToken() {
return captchaToken;
}
/**
* @return URL of the Captcha image.
*/
public String getCaptchaUrl() {
return captchaUrl;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy