info.baseinsight.core.config.SimpleCaptchaProperties Maven / Gradle / Ivy
The newest version!
package info.baseinsight.core.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(prefix = "base")
public class SimpleCaptchaProperties {
private Captcha captcha=new Captcha();
public Captcha getCaptcha() {
return captcha;
}
public void setCaptcha(Captcha captcha) {
this.captcha = captcha;
}
public static class Captcha{
public long getExpiration() {
return expiration;
}
public void setExpiration(long expiration) {
this.expiration = expiration;
}
public int getAllowedNumberOfAttempts() {
return allowedNumberOfAttempts;
}
public void setAllowedNumberOfAttempts(int allowedNumberOfAttempts) {
this.allowedNumberOfAttempts = allowedNumberOfAttempts;
}
public int getLength() {
return length;
}
public void setLength(int length) {
this.length = length;
}
public String getChars() {
return chars;
}
public void setChars(String chars) {
this.chars = chars;
}
public String getFont() {
return font;
}
public void setFont(String font) {
this.font = font;
}
public int getHeight() {
return height;
}
public void setHeight(int height) {
this.height = height;
}
public int getWidth() {
return width;
}
public void setWidth(int width) {
this.width = width;
}
public int getFontSize() {
return fontSize;
}
public void setFontSize(int fontSize) {
this.fontSize = fontSize;
}
public int getBottomPadding() {
return bottomPadding;
}
public void setBottomPadding(int bottomPadding) {
this.bottomPadding = bottomPadding;
}
public int getLineSpacing() {
return lineSpacing;
}
public void setLineSpacing(int lineSpacing) {
this.lineSpacing = lineSpacing;
}
private long expiration = 60;
private int allowedNumberOfAttempts = 5;
private int length = 6;
private String chars="ABCDEFGHIDKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
private String font = "Serif";
private int height = 200;
private int width = 200;
private int fontSize = 24;
private int bottomPadding = 16;
private int lineSpacing = 10;
}
}