net.eightlives.friendlyssl.config.FriendlySSLConfig Maven / Gradle / Ivy
package net.eightlives.friendlyssl.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import java.util.ArrayList;
import java.util.List;
@Configuration
@ConfigurationProperties(prefix = "friendly-ssl")
public class FriendlySSLConfig {
private boolean autoRenewEnabled = false;
private String acmeSessionUrl = "acme://letsencrypt.org/staging";
private String domain;
private String accountEmail;
private String certificateKeyAlias = "friendlyssl";
private String accountPrivateKeyFile = "account.pem";
private String keystoreFile = "keystore.p12";
private String termsOfServiceFile = "tos";
private int orderTimeoutSeconds = 30;
private int tokenRequestedTimeoutSeconds = 30;
private int authChallengeTimeoutSeconds = 20;
private int autoRenewalHoursBefore = 72;
private int errorRetryWaitHours = 1;
private List endpointsInclude = new ArrayList<>();
public boolean isAutoRenewEnabled() {
return autoRenewEnabled;
}
public void setAutoRenewEnabled(boolean autoRenewEnabled) {
this.autoRenewEnabled = autoRenewEnabled;
}
public String getAcmeSessionUrl() {
return acmeSessionUrl;
}
public void setAcmeSessionUrl(String acmeSessionUrl) {
this.acmeSessionUrl = acmeSessionUrl;
}
public String getDomain() {
return domain;
}
public void setDomain(String domain) {
this.domain = domain;
}
public String getAccountEmail() {
return accountEmail;
}
public void setAccountEmail(String accountEmail) {
this.accountEmail = accountEmail;
}
public String getCertificateKeyAlias() {
return certificateKeyAlias;
}
public void setCertificateKeyAlias(String certificateKeyAlias) {
this.certificateKeyAlias = certificateKeyAlias;
}
public String getAccountPrivateKeyFile() {
return accountPrivateKeyFile;
}
public void setAccountPrivateKeyFile(String accountPrivateKeyFile) {
this.accountPrivateKeyFile = accountPrivateKeyFile;
}
public String getKeystoreFile() {
return keystoreFile;
}
public void setKeystoreFile(String keystoreFile) {
this.keystoreFile = keystoreFile;
}
public String getTermsOfServiceFile() {
return termsOfServiceFile;
}
public void setTermsOfServiceFile(String termsOfServiceFile) {
this.termsOfServiceFile = termsOfServiceFile;
}
public int getOrderTimeoutSeconds() {
return orderTimeoutSeconds;
}
public void setOrderTimeoutSeconds(int orderTimeoutSeconds) {
this.orderTimeoutSeconds = orderTimeoutSeconds;
}
public int getTokenRequestedTimeoutSeconds() {
return tokenRequestedTimeoutSeconds;
}
public void setTokenRequestedTimeoutSeconds(int tokenRequestedTimeoutSeconds) {
this.tokenRequestedTimeoutSeconds = tokenRequestedTimeoutSeconds;
}
public int getAuthChallengeTimeoutSeconds() {
return authChallengeTimeoutSeconds;
}
public void setAuthChallengeTimeoutSeconds(int authChallengeTimeoutSeconds) {
this.authChallengeTimeoutSeconds = authChallengeTimeoutSeconds;
}
public int getAutoRenewalHoursBefore() {
return autoRenewalHoursBefore;
}
public void setAutoRenewalHoursBefore(int autoRenewalHoursBefore) {
this.autoRenewalHoursBefore = autoRenewalHoursBefore;
}
public int getErrorRetryWaitHours() {
return errorRetryWaitHours;
}
public void setErrorRetryWaitHours(int errorRetryWaitHours) {
this.errorRetryWaitHours = errorRetryWaitHours;
}
public List getEndpointsInclude() {
return endpointsInclude;
}
public void setEndpointsInclude(List endpointsInclude) {
this.endpointsInclude = endpointsInclude;
}
}