Package swiss.trustbroker.config.dto
Class AnnouncementConfig.AnnouncementConfigBuilder
java.lang.Object
swiss.trustbroker.config.dto.AnnouncementConfig.AnnouncementConfigBuilder
- Enclosing class:
AnnouncementConfig
-
Method Summary
Modifier and TypeMethodDescriptionapplicationNames(List<String> applicationNames) A list of application names: Global announcements are shown to all users on every federated login CP related announcements as well, but they can also lead to disabling the HRD tile when the CP 'application' is marked as unavailable.attributes(Map<String, Object> attributes) Custom attributes that might be needed by the implementation.build()Path for the local announcements cache.enableAppSpecificQuery(boolean enableAppSpecificQuery) App specific queries enabled.enabled(boolean enabled) Disable the service to discard all announcements.globalApplicationName(String globalApplicationName) Global Announcement application namelifeTimeMin(int lifeTimeMin) After this many minutes of connection loss discard the messages from the cache.serviceUrl(String serviceUrl) REST endpoint to retrieve current announcements from.syncSchedule(String syncSchedule) Schedule for fetching current announcements.toString()truststorePassword(String truststorePassword) Password for the truststore.truststorePath(String truststorePath) TLS truststore used to establish HTTPS connection.
-
Method Details
-
enabled
Disable the service to discard all announcements.
Default: false- Returns:
this.
-
syncSchedule
Schedule for fetching current announcements. Cron expression.- Returns:
this.
-
cachePath
Path for the local announcements cache.- Returns:
this.
-
serviceUrl
REST endpoint to retrieve current announcements from.- Returns:
this.
-
lifeTimeMin
After this many minutes of connection loss discard the messages from the cache.
Default: 15- Returns:
this.
-
truststorePath
TLS truststore used to establish HTTPS connection.- Returns:
this.
-
truststorePassword
Password for the truststore.
Always specify$PKI_PASSPHRASE
for passwords as a place-holder for the key decryption passphrase to be passed to the running XTB process.- Returns:
this.
-
globalApplicationName
public AnnouncementConfig.AnnouncementConfigBuilder globalApplicationName(String globalApplicationName) Global Announcement application name- Returns:
this.- Since:
- 1.13.0
-
applicationNames
A list of application names:- Global announcements are shown to all users on every federated login
- CP related announcements as well, but they can also lead to disabling the HRD tile when the CP 'application' is marked as unavailable.
- Returns:
this.
-
enableAppSpecificQuery
public AnnouncementConfig.AnnouncementConfigBuilder enableAppSpecificQuery(boolean enableAppSpecificQuery) App specific queries enabled.- Returns:
this.
-
attributes
Custom attributes that might be needed by the implementation.- Returns:
this.
-
build
-
toString
-