Enum Class HttpAuthMethod.Type

java.lang.Object
java.lang.Enum<HttpAuthMethod.Type>
org.eclipse.jgit.transport.HttpAuthMethod.Type
All Implemented Interfaces:
Serializable, Comparable<HttpAuthMethod.Type>, Constable
Enclosing class:
HttpAuthMethod

public static enum HttpAuthMethod.Type extends Enum<HttpAuthMethod.Type>
Enum listing the http authentication method types supported by jgit. They are sorted by priority order!!!
  • Enum Constant Details

  • Constructor Details

    • Type

      private Type()
  • Method Details

    • values

      public static HttpAuthMethod.Type[] 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.Type 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
    • method

      public abstract HttpAuthMethod method(String hdr)
      Creates a HttpAuthMethod instance configured with the provided HTTP WWW-Authenticate header.
      Parameters:
      hdr - the http header
      Returns:
      a configured HttpAuthMethod instance
    • getSchemeName

      public abstract String getSchemeName()
      Returns:
      the name of the authentication scheme in the form to be used in HTTP authentication headers as specified in RFC2617 and RFC4559