com.github.mkopylec.recaptcha.security.RecaptchaAuthenticationException Maven / Gradle / Ivy
package com.github.mkopylec.recaptcha.security;
import com.github.mkopylec.recaptcha.validation.ErrorCode;
import org.springframework.security.core.AuthenticationException;
import java.util.List;
import static java.util.Collections.unmodifiableList;
public class RecaptchaAuthenticationException extends AuthenticationException {
private final List errorCodes;
public RecaptchaAuthenticationException(List errorCodes) {
super("reCAPTCHA authentication error: " + errorCodes);
this.errorCodes = errorCodes;
}
public List getErrorCodes() {
return unmodifiableList(errorCodes);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy