-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
6403edf
commit 59daed2
Showing
12 changed files
with
354 additions
and
94 deletions.
There are no files selected for viewing
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
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
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
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
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
60 changes: 60 additions & 0 deletions
60
...ain/java/it/finanze/sanita/fse2/ms/gtw/statusmanager/config/kafka/KafkaPropertiesCFG.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,60 @@ | ||
package it.finanze.sanita.fse2.ms.gtw.statusmanager.config.kafka; | ||
|
||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
import lombok.Data; | ||
import lombok.extern.slf4j.Slf4j; | ||
|
||
|
||
@Slf4j | ||
@Configuration | ||
@Data | ||
public class KafkaPropertiesCFG { | ||
|
||
/** | ||
* Producer bootstrap server. | ||
*/ | ||
@Value("${kafka.bootstrap-servers}") | ||
private String bootstrapServers; | ||
|
||
@Value("${kafka.oauth.tenantId}") | ||
private String tenantId; | ||
|
||
@Value("${kafka.oauth.clientId}") | ||
private String clientId; | ||
|
||
@Value("${kafka.oauth.pwd}") | ||
private String pwd; | ||
|
||
/** | ||
* Protocol. | ||
*/ | ||
@Value("${kafka.properties.security.protocol}") | ||
private String protocol; | ||
|
||
/** | ||
* Meccanismo. | ||
*/ | ||
@Value("${kafka.properties.sasl.mechanism}") | ||
private String mechanism; | ||
|
||
/** | ||
* Config jass. | ||
*/ | ||
@Value("${kafka.properties.sasl.jaas.config}") | ||
private String configJaas; | ||
|
||
/** | ||
* Posizione trust store. | ||
*/ | ||
@Value("${kafka.properties.ssl.truststore.location}") | ||
private String trustoreLocation; | ||
|
||
/** | ||
* Password trust store. | ||
*/ | ||
@Value("${kafka.properties.ssl.truststore.password}") | ||
private char[] trustorePassword; | ||
|
||
} |
Oops, something went wrong.