All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.mkopylec.recaptcha.security.RecaptchaAuthenticationException Maven / Gradle / Ivy

There is a newer version: 2.3.1
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy