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

com.datastrato.gravitino.server.authentication.KerberosConfig Maven / Gradle / Ivy

Go to download

Gravitino is a high-performance, geo-distributed and federated metadata lake.

There is a newer version: 0.5.1
Show newest version
/*
 * 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