public enum GitBasicAuthPolicy extends Enum<GitBasicAuthPolicy>
Enum Constant and Description |
---|
HTTP
Only the HTTP password is accepted when doing Git over HTTP and REST API requests.
|
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.
|
LDAP
Only the LDAP password is allowed when doing Git over HTTP and REST API requests.
|
OAUTH
Only the `OAUTH` authentication is allowed when doing Git over HTTP and REST API requests.
|
Modifier and Type | Method and Description |
---|---|
static GitBasicAuthPolicy |
valueOf(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.
|
public static final GitBasicAuthPolicy HTTP
public static final GitBasicAuthPolicy LDAP
public static final GitBasicAuthPolicy HTTP_LDAP
public static final GitBasicAuthPolicy OAUTH
public static GitBasicAuthPolicy[] values()
for (GitBasicAuthPolicy c : GitBasicAuthPolicy.values()) System.out.println(c);
public static GitBasicAuthPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null