public class SignUpRequest extends java.lang.Object implements Request<Credentials>, AuthenticationRequest
Modifier and Type | Method and Description |
---|---|
SignUpRequest |
addAuthenticationParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
Add additional parameters sent when logging the user in
|
SignUpRequest |
addSignUpParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
Add additional parameters sent when creating a using.
|
Credentials |
execute()
Execute the create user request and then logs the user in.
|
AuthenticationRequest |
setAccessToken(java.lang.String accessToken)
Sets the 'access_token' parameter
|
SignUpRequest |
setConnection(java.lang.String connection)
Set the connection used to authenticate
|
AuthenticationRequest |
setDevice(java.lang.String device)
Sets the 'device' parameter
|
AuthenticationRequest |
setGrantType(java.lang.String grantType)
Sets the 'grant_type' parameter
|
SignUpRequest |
setScope(java.lang.String scope)
Set the scope used to login the user
|
void |
start(BaseCallback<Credentials> callback)
Starts to execute create user request and then logs the user in.
|
public SignUpRequest addSignUpParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
parameters
- sent with the request and must be non-nullpublic SignUpRequest addAuthenticationParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
addAuthenticationParameters
in interface AuthenticationRequest
parameters
- sent with the request and must be non-nullParameterBuilder
public SignUpRequest setScope(java.lang.String scope)
setScope
in interface AuthenticationRequest
scope
- valuepublic AuthenticationRequest setDevice(java.lang.String device)
AuthenticationRequest
setDevice
in interface AuthenticationRequest
device
- a device namepublic AuthenticationRequest setAccessToken(java.lang.String accessToken)
AuthenticationRequest
setAccessToken
in interface AuthenticationRequest
accessToken
- a access tokenpublic AuthenticationRequest setGrantType(java.lang.String grantType)
AuthenticationRequest
setGrantType
in interface AuthenticationRequest
grantType
- grant typepublic SignUpRequest setConnection(java.lang.String connection)
setConnection
in interface AuthenticationRequest
connection
- namepublic void start(BaseCallback<Credentials> callback)
start
in interface Request<Credentials>
callback
- called on either success or failure.public Credentials execute() throws Auth0Exception
execute
in interface Request<Credentials>
Auth0Exception
- on failure