public class AuthRequest extends Object
AccountManager.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 and Description |
---|
AuthRequest(ExternalId.Key externalId) |
public AuthRequest(ExternalId.Key externalId)
public static AuthRequest forUser(String username)
public static AuthRequest forExternalUser(String username)
public static AuthRequest forEmail(String email)
This type of request should be used only to attach a new email address to an existing user account.
public ExternalId.Key getExternalIdKey()
public String getLocalUser()
public void setLocalUser(String localUser)
public String getPassword()
public void setPassword(String pass)
public String getDisplayName()
public void setDisplayName(String name)
public String getEmailAddress()
public void setEmailAddress(String email)
public void setUserName(String user)
public boolean isSkipAuthentication()
public void setSkipAuthentication(boolean skip)
public String getAuthPlugin()
public void setAuthPlugin(String authPlugin)
public String getAuthProvider()
public void setAuthProvider(String authProvider)
public boolean authProvidesAccountActiveStatus()
public void setAuthProvidesAccountActiveStatus(boolean authProvidesAccountActiveStatus)
public boolean isActive()
public void setActive(Boolean isActive)