com.datastrato.gravitino.server.authentication.KerberosConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of server-common Show documentation
Show all versions of server-common Show documentation
Gravitino is a high-performance, geo-distributed and federated metadata lake.
/*
* Copyright 2024 Datastrato Pvt Ltd.
* This software is licensed under the Apache License version 2.
*/
package com.datastrato.gravitino.server.authentication;
import com.datastrato.gravitino.config.ConfigBuilder;
import com.datastrato.gravitino.config.ConfigConstants;
import com.datastrato.gravitino.config.ConfigEntry;
import org.apache.commons.lang3.StringUtils;
public interface KerberosConfig {
String KERBEROS_CONFIG_PREFIX = "gravitino.authenticator.kerberos.";
ConfigEntry PRINCIPAL =
new ConfigBuilder(KERBEROS_CONFIG_PREFIX + "principal")
.doc("Indicates the Kerberos principal to be used for HTTP endpoint")
.version(ConfigConstants.VERSION_0_4_0)
.stringConf()
.checkValue(StringUtils::isNotBlank, ConfigConstants.NOT_BLANK_ERROR_MSG)
.create();
ConfigEntry KEYTAB =
new ConfigBuilder(KERBEROS_CONFIG_PREFIX + "keytab")
.doc("Location of the keytab file with the credentials for the principal")
.version(ConfigConstants.VERSION_0_4_0)
.stringConf()
.checkValue(StringUtils::isNotBlank, ConfigConstants.NOT_BLANK_ERROR_MSG)
.create();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy