Enum Class HttpAuthMethod

java.lang.Object
java.lang.Enum<HttpAuthMethod>
com.norconex.crawler.web.fetch.impl.httpclient.HttpAuthMethod
All Implemented Interfaces:
Serializable, Comparable<HttpAuthMethod>, Constable

public enum HttpAuthMethod extends Enum<HttpAuthMethod>
Authentication methods.
  • Enum Constant Details

    • FORM

      public static final HttpAuthMethod FORM
      Form-based authentication method.
    • BASIC

      public static final HttpAuthMethod BASIC
      BASIC authentication method.
    • DIGEST

      public static final HttpAuthMethod DIGEST
      DIGEST authentication method.
    • NTLM

      @Deprecated(since="4.0.0") public static final HttpAuthMethod NTLM
      Deprecated.
      NTLM authentication method. @deprecated NTLM is no longer supported by Apache HttpClient 5. Consider using SPNEGO or KERBEROS instead.
    • SPNEGO

      public static final HttpAuthMethod SPNEGO
      SPNEGO authentication method. Requires a KerberosConfig in the authentication configuration.
    • KERBEROS

      public static final HttpAuthMethod KERBEROS
      Kerberos authentication method. Requires a KerberosConfig in the authentication configuration.
  • Method Details

    • values

      public static HttpAuthMethod[] 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 HttpAuthMethod 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