Enum Class HdfsAuthMethod

java.lang.Object
java.lang.Enum<HdfsAuthMethod>
com.norconex.crawler.fs.fetch.impl.hdfs.HdfsAuthMethod
All Implemented Interfaces:
Serializable, Comparable<HdfsAuthMethod>, Constable

public enum HdfsAuthMethod extends Enum<HdfsAuthMethod>
WebHDFS authentication methods.
  • Enum Constant Details

    • SIMPLE

      public static final HdfsAuthMethod SIMPLE
      No real authentication: the configured username, if any, is sent as the user.name query parameter. This is how an unsecured (non-Kerberized) HDFS cluster identifies the caller.
    • KERBEROS

      public static final HdfsAuthMethod KERBEROS
      Kerberos/SPNEGO authentication, for clusters with hadoop.security.authentication=kerberos. Requires a KerberosConfig.
  • Method Details

    • values

      public static HdfsAuthMethod[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HdfsAuthMethod valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null