public enum AuthType extends Enum<AuthType>
| Enum Constant and Description |
|---|
CLIENT_SSL_CERT_LDAP
Login via client SSL certificate.
|
CUSTOM_EXTENSION
Login is managed by additional, unspecified code.
|
DEVELOPMENT_BECOME_ANY_ACCOUNT
Development mode to enable becoming anyone you want.
|
HTTP
Login relies upon the container/web server security.
|
HTTP_LDAP
Login relies upon the container/web server security.
|
LDAP
Login collects username and password through a web form, and binds to LDAP.
|
LDAP_BIND
Login collects username and password through a web form, and binds to LDAP.
|
OAUTH
Generic OAuth provider over HTTP.
|
OPENID
Login relies upon the OpenID standard
|
OPENID_SSO
Login relies upon the OpenID standard in Single Sign On mode
|
| Modifier and Type | Method and Description |
|---|---|
static AuthType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AuthType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthType OPENID
public static final AuthType OPENID_SSO
public static final AuthType HTTP
The container or web server must populate an HTTP header with a unique name for the current user. Gerrit will implicitly trust the value of this header to supply the unique identity.
public static final AuthType HTTP_LDAP
Like HTTP, the container or web server must populate an HTTP header with a unique
name for the current user. Gerrit will implicitly trust the value of this header to supply the
unique identity.
After the authentication is done Gerrit will obtain basic user registration (name and email), and some group memberships, from LDP. Hence the "_LDAP" suffix in the name of this authentication type.
Gerrit will NOT authenticate the user via LDAP.
public static final AuthType CLIENT_SSL_CERT_LDAP
This authentication type is actually kind of SSO. Gerrit will configure Jetty's SSL channel to request client's SSL certificate. For this authentication to work a Gerrit administrator has to import the root certificate of the trust chain used to issue the client's certificate into the <review-site>/etc/keystore.
After the authentication is done Gerrit will obtain basic user registration (name and email), and some group memberships, from LDP. Hence the "_LDAP" suffix in the name of this authentication type.
Gerrit will NOT authenticate the user via LDAP.
public static final AuthType LDAP
Unlike HTTP_LDAP, Gerrit presents a sign-in dialog to the user and makes the
connection to the LDAP server on their behalf.
public static final AuthType LDAP_BIND
Unlike HTTP_LDAP, Gerrit presents a sign-in dialog to the user and makes the
connection to the LDAP server on their behalf.
Unlike the more generic LDAP mode, Gerrit can only query the directory via an
actual authenticated user account.
public static final AuthType CUSTOM_EXTENSION
public static final AuthType DEVELOPMENT_BECOME_ANY_ACCOUNT
public static final AuthType OAUTH
public static AuthType[] values()
for (AuthType c : AuthType.values()) System.out.println(c);
public static AuthType 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 nullCopyright © 2018. All rights reserved.