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

com.szityu.oss.spring.recaptcha.lib.RecaptchaConfigProperties Maven / Gradle / Ivy

package com.szityu.oss.spring.recaptcha.lib;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.FieldDefaults;

import static lombok.AccessLevel.PRIVATE;

/**
 * This class contains the config parameters for integration reCAPTCHA into Spring Boot.
 *
 * @author Szilard Laszlo Fodor
 */
@Getter
@Setter
@FieldDefaults(level = PRIVATE)
public class RecaptchaConfigProperties {
    /**
     * The secret key obtained from Google's reCAPTCHA service used for validating user sent captcha values.
     */
    String secret;
    /**
     * An Ant styled URL list of captcha protected resources.
     */
    String[] protectedUrls;
    /**
     * The header name in which the client needs to send the captcha check value.
     */
    String headerName = "g-recaptcha-response";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy