-
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
Showing
12 changed files
with
365 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
63 changes: 63 additions & 0 deletions
63
...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,63 @@ | ||
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.appId}") | ||
private String appId; | ||
|
||
@Value("${kafka.oauth.pfxPathName}") | ||
private String pfxPathName; | ||
|
||
@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.