All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mariadb.jdbc.internal.util.OptionUtils Maven / Gradle / Ivy

There is a newer version: 0.40.13
Show newest version
package org.mariadb.jdbc.internal.util;

import java.util.HashMap;
import java.util.Map;

public class OptionUtils {

    public static final Map OPTIONS_MAP;

    static {
        OPTIONS_MAP = new HashMap();
        for (DefaultOptions defaultOption : DefaultOptions.values()) {
            OPTIONS_MAP.put(defaultOption.getOptionName(), defaultOption);
        }
        //add alias
        OPTIONS_MAP.put("createDB", DefaultOptions.CREATE_DATABASE_IF_NOT_EXISTS);
        OPTIONS_MAP.put("useSSL", DefaultOptions.USE_SSL);
        OPTIONS_MAP.put("profileSQL", DefaultOptions.PROFILESQL);
        OPTIONS_MAP.put("enabledSSLCipherSuites", DefaultOptions.ENABLED_SSL_CIPHER_SUITES);
        OPTIONS_MAP.put("trustCertificateKeyStorePassword", DefaultOptions.TRUST_CERTIFICATE_KEYSTORE_PASSWORD);
        OPTIONS_MAP.put("trustCertificateKeyStoreUrl", DefaultOptions.TRUSTSTORE);
        OPTIONS_MAP.put("clientCertificateKeyStorePassword", DefaultOptions.KEYSTORE_PASSWORD);
        OPTIONS_MAP.put("clientCertificateKeyStoreUrl", DefaultOptions.KEYSTORE);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy