Package com.google.gerrit.server.account
Class AuthRequest
- java.lang.Object
-
- com.google.gerrit.server.account.AuthRequest
-
public class AuthRequest extends Object
Information forAccountManager.authenticate(AuthRequest)
.Callers should populate this object with as much information as possible about the user account. For example, OpenID authentication might return registration information including a display name for the user, and an email address for them. These fields however are optional, as not all OpenID providers return them, and not all non-OpenID systems can use them.
-
-
Constructor Summary
Constructors Constructor Description AuthRequest(ExternalId.Key externalId)
-
Method Summary
-
-
-
Constructor Detail
-
AuthRequest
public AuthRequest(ExternalId.Key externalId)
-
-
Method Detail
-
forUser
public static AuthRequest forUser(String username)
Create a request for a local username, such as from LDAP.
-
forExternalUser
public static AuthRequest forExternalUser(String username)
Create a request for an external username.
-
forEmail
public static AuthRequest forEmail(String email)
Create a request for an email address registration.This type of request should be used only to attach a new email address to an existing user account.
-
getExternalIdKey
public ExternalId.Key getExternalIdKey()
-
getLocalUser
public String getLocalUser()
-
setLocalUser
public void setLocalUser(String localUser)
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String pass)
-
getDisplayName
public String getDisplayName()
-
setDisplayName
public void setDisplayName(String name)
-
getEmailAddress
public String getEmailAddress()
-
setEmailAddress
public void setEmailAddress(String email)
-
setUserName
public void setUserName(String user)
-
isSkipAuthentication
public boolean isSkipAuthentication()
-
setSkipAuthentication
public void setSkipAuthentication(boolean skip)
-
getAuthPlugin
public String getAuthPlugin()
-
setAuthPlugin
public void setAuthPlugin(String authPlugin)
-
getAuthProvider
public String getAuthProvider()
-
setAuthProvider
public void setAuthProvider(String authProvider)
-
authProvidesAccountActiveStatus
public boolean authProvidesAccountActiveStatus()
-
setAuthProvidesAccountActiveStatus
public void setAuthProvidesAccountActiveStatus(boolean authProvidesAccountActiveStatus)
-
isActive
public boolean isActive()
-
setActive
public void setActive(Boolean isActive)
-
-