leonardovannucci
2020-05-13 74967f038707374661a6765245c062cb9f7bc7d7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package it.digione.dg1cloud.recaptcha;
 
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
 
@Component
@ConfigurationProperties(prefix = "google.recaptcha")
public class CaptchaSettings {
 
   private boolean enabled;
   private String url;
   private String key;
   private String secret;
 
   public boolean isEnabled() {
       return enabled;
   }
 
   public void setEnabled(boolean enabled) {
       this.enabled = enabled;
   }
 
   public String getUrl() {
       return url;
   }
 
   public void setUrl(String url) {
       this.url = url;
   }
 
   public String getKey() {
       return key;
   }
 
   public void setKey(String key) {
       this.key = key;
   }
 
   public String getSecret() {
       return secret;
   }
 
   public void setSecret(String secret) {
       this.secret = secret;
   }
}