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

com.c4_soft.springaddons.starter.recaptcha.C4ReCaptchaSettings Maven / Gradle / Ivy

package com.c4_soft.springaddons.starter.recaptcha;

import java.net.URL;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.stereotype.Component;
import com.c4_soft.springaddons.rest.SpringAddonsRestProperties.RestClientProperties.ClientHttpRequestFactoryProperties;
import lombok.Data;

@Data
@Component
@ConfigurationProperties(prefix = "com.c4-soft.springaddons.recaptcha")
public class C4ReCaptchaSettings {

  private String secretKey;

  @Value("${siteverify-url:https://www.google.com/recaptcha/api/siteverify}")
  private URL siteverifyUrl;

  private double v3Threshold = .5;

  @NestedConfigurationProperty
  private ClientHttpRequestFactoryProperties http;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy