Enum Class GitBasicAuthPolicy

java.lang.Object
java.lang.Enum<GitBasicAuthPolicy>
com.google.gerrit.extensions.client.GitBasicAuthPolicy
All Implemented Interfaces:
Serializable, Comparable<GitBasicAuthPolicy>, java.lang.constant.Constable

public enum GitBasicAuthPolicy extends Enum<GitBasicAuthPolicy>
  • Enum Constant Details

    • HTTP

      public static final GitBasicAuthPolicy HTTP
      Only the HTTP password is accepted when doing Git over HTTP and REST API requests.
    • LDAP

      public static final GitBasicAuthPolicy LDAP
      Only the LDAP password is allowed when doing Git over HTTP and REST API requests.
    • HTTP_LDAP

      public static final GitBasicAuthPolicy HTTP_LDAP
      The password in the request is first checked against the HTTP password and, if it does not match, it is then validated against the LDAP password.
    • OAUTH

      public static final GitBasicAuthPolicy OAUTH
      Only the `OAUTH` authentication is allowed when doing Git over HTTP and REST API requests.
  • Method Details

    • values

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