-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
src/main/java/de/bsi/secvisogram/csaf_cms_backend/config/CsafAutoPublishConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package de.bsi.secvisogram.csaf_cms_backend.config; | ||
|
||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration | ||
public class CsafAutoPublishConfiguration { | ||
|
||
private boolean enabled = false; | ||
private boolean enableInsecureTLS = false; | ||
private String url = ""; | ||
private String password = ""; | ||
private String cron = "0 * * * * *"; | ||
|
||
public boolean isEnabled() { | ||
return enabled; | ||
} | ||
|
||
public CsafAutoPublishConfiguration setEnabled(boolean enabled) { | ||
this.enabled = enabled; | ||
return this; | ||
} | ||
|
||
public String getUrl() { | ||
return url; | ||
} | ||
|
||
public CsafAutoPublishConfiguration setUrl(String url) { | ||
this.url = url; | ||
return this; | ||
} | ||
|
||
public String getPassword() { | ||
return password; | ||
} | ||
|
||
public CsafAutoPublishConfiguration setPassword(String password) { | ||
this.password = password; | ||
return this; | ||
} | ||
|
||
public String getCron() { | ||
return cron; | ||
} | ||
|
||
public CsafAutoPublishConfiguration setCron(String cron) { | ||
this.cron = cron; | ||
return this; | ||
} | ||
|
||
public boolean isEnableInsecureTLS() { | ||
return enableInsecureTLS; | ||
} | ||
|
||
public CsafAutoPublishConfiguration setEnableInsecureTLS(boolean enableInsecureTLS) { | ||
this.enableInsecureTLS = enableInsecureTLS; | ||
return this; | ||
} | ||
} |