Search in sources :

Example 1 with SecureStoreConfig

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);
    }
}
Also used : SecureStoreConfig(com.hazelcast.config.SecureStoreConfig) VaultSecureStoreConfig(com.hazelcast.config.VaultSecureStoreConfig) JavaKeyStoreSecureStoreConfig(com.hazelcast.config.JavaKeyStoreSecureStoreConfig) Node(org.w3c.dom.Node) InvalidConfigurationException(com.hazelcast.config.InvalidConfigurationException)

Aggregations

InvalidConfigurationException (com.hazelcast.config.InvalidConfigurationException)1 JavaKeyStoreSecureStoreConfig (com.hazelcast.config.JavaKeyStoreSecureStoreConfig)1 SecureStoreConfig (com.hazelcast.config.SecureStoreConfig)1 VaultSecureStoreConfig (com.hazelcast.config.VaultSecureStoreConfig)1 Node (org.w3c.dom.Node)1