MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / EncryptConfig

Method EncryptConfig

encrypt-config/EncryptConfig.cpp:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41namespace encrypt_config {
42
43EncryptConfig::EncryptConfig(const std::string& minifi_home) : minifi_home_(minifi_home) {
44 if (sodium_init() < 0) {
45 throw std::runtime_error{"Could not initialize the libsodium library!"};
46 }
47 // encryption/decryption depends on the libsodium library which needs to be initialized
48 keys_ = getEncryptionKeys();
49}
50
51EncryptConfig::EncryptionType EncryptConfig::encryptSensitiveProperties() const {
52 encryptSensitiveProperties(keys_);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected