Enum GitBasicAuthPolicy
- java.lang.Object
- 
- java.lang.Enum<GitBasicAuthPolicy>
- 
- com.google.gerrit.extensions.client.GitBasicAuthPolicy
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<GitBasicAuthPolicy>
 
 public enum GitBasicAuthPolicy extends Enum<GitBasicAuthPolicy> 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description HTTPOnly the HTTP password is accepted when doing Git over HTTP and REST API requests.HTTP_LDAPThe 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.LDAPOnly the LDAP password is allowed when doing Git over HTTP and REST API requests.OAUTHOnly the `OAUTH` authentication is allowed when doing Git over HTTP and REST API requests.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static GitBasicAuthPolicyvalueOf(String name)Returns the enum constant of this type with the specified name.static GitBasicAuthPolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
HTTPpublic static final GitBasicAuthPolicy HTTP Only the HTTP password is accepted when doing Git over HTTP and REST API requests.
 - 
LDAPpublic static final GitBasicAuthPolicy LDAP Only the LDAP password is allowed when doing Git over HTTP and REST API requests.
 - 
HTTP_LDAPpublic 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.
 - 
OAUTHpublic static final GitBasicAuthPolicy OAUTH Only the `OAUTH` authentication is allowed when doing Git over HTTP and REST API requests.
 
- 
 - 
Method Detail- 
valuespublic static GitBasicAuthPolicy[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GitBasicAuthPolicy c : GitBasicAuthPolicy.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static GitBasicAuthPolicy valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
- NullPointerException- if the argument is null
 
 
- 
 
-