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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuthRequest.Factory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
authProvidesAccountActiveStatus()
String
getAuthPlugin()
String
getAuthProvider()
String
getDisplayName()
String
getEmailAddress()
ExternalId.Key
getExternalIdKey()
String
getLocalUser()
String
getPassword()
Optional<String>
getUserName()
boolean
isActive()
boolean
isSkipAuthentication()
void
setActive(Boolean isActive)
void
setAuthPlugin(String authPlugin)
void
setAuthProvider(String authProvider)
void
setAuthProvidesAccountActiveStatus(boolean authProvidesAccountActiveStatus)
void
setDisplayName(String name)
void
setEmailAddress(String email)
void
setLocalUser(String localUser)
void
setPassword(String pass)
void
setSkipAuthentication(boolean skip)
void
setUserName(String user)
-
-
-
Method Detail
-
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)
-
-