use of com.hazelcast.config.SecureStoreConfig in project hazelcast by hazelcast.
the class MemberDomConfigProcessor method handleSecureStore.
private void handleSecureStore(Node secureStoreRoot, EncryptionAtRestConfig encryptionAtRestConfig) {
Node n = firstChildElement(secureStoreRoot);
if (n != null) {
String name = cleanNodeName(n);
SecureStoreConfig secureStoreConfig;
if (matches("keystore", name)) {
secureStoreConfig = handleJavaKeyStore(n);
} else if (matches("vault", name)) {
secureStoreConfig = handleVault(n);
} else {
throw new InvalidConfigurationException("Unrecognized Secure Store type: " + name);
}
encryptionAtRestConfig.setSecureStoreConfig(secureStoreConfig);
}
}
Aggregations