-
public final class ParameterBuilder
Builder for Auth0 Authentication API parameters You can build your parameters like this
val parameters = ParameterBuilder.newBuilder() .setClientId("{CLIENT_ID}") .setConnection("{CONNECTION}") .set("{PARAMETER_NAME}", "{PARAMETER_VALUE}") .asDictionary()
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
ParameterBuilder.Companion
-
Method Summary
Modifier and Type Method Description final ParameterBuilder
setClientId(String clientId)
Sets the 'client_id' parameter final ParameterBuilder
setGrantType(String grantType)
Sets the 'grant_type' parameter final ParameterBuilder
setConnection(String connection)
Sets the 'connection' parameter final ParameterBuilder
setRealm(String realm)
Sets the 'realm' parameter. final ParameterBuilder
setScope(String scope)
Sets the 'scope' parameter. final ParameterBuilder
setAudience(String audience)
Sets the 'audience' parameter. final ParameterBuilder
setRefreshToken(String refreshToken)
Sets the 'refresh_token' parameter final ParameterBuilder
setSend(PasswordlessType passwordlessType)
Sets the 'send' parameter final ParameterBuilder
set(String key, String value)
Sets a parameter final ParameterBuilder
addAll(Map<String, String> parameters)
Adds all parameter from a map final ParameterBuilder
clearAll()
Clears all existing parameters final Map<String, String>
asDictionary()
Create a Map with all the parameters -
-
Method Detail
-
setClientId
final ParameterBuilder setClientId(String clientId)
Sets the 'client_id' parameter
- Parameters:
clientId
- the application's client id
-
setGrantType
final ParameterBuilder setGrantType(String grantType)
Sets the 'grant_type' parameter
- Parameters:
grantType
- grant type
-
setConnection
final ParameterBuilder setConnection(String connection)
Sets the 'connection' parameter
- Parameters:
connection
- name of the connection
-
setRealm
final ParameterBuilder setRealm(String realm)
Sets the 'realm' parameter. A realm identifies the host against which the authentication will be made, and usually helps to know which username and password to use.
- Parameters:
realm
- name of the realm
-
setScope
final ParameterBuilder setScope(String scope)
Sets the 'scope' parameter.
- Parameters:
scope
- a scope value
-
setAudience
final ParameterBuilder setAudience(String audience)
Sets the 'audience' parameter.
- Parameters:
audience
- an audience value
-
setRefreshToken
final ParameterBuilder setRefreshToken(String refreshToken)
Sets the 'refresh_token' parameter
- Parameters:
refreshToken
- a access token
-
setSend
final ParameterBuilder setSend(PasswordlessType passwordlessType)
Sets the 'send' parameter
- Parameters:
passwordlessType
- the type of passwordless login
-
set
final ParameterBuilder set(String key, String value)
Sets a parameter
- Parameters:
key
- parameter namevalue
- parameter value.
-
addAll
final ParameterBuilder addAll(Map<String, String> parameters)
Adds all parameter from a map
- Parameters:
parameters
- map with parameters to add.
-
clearAll
final ParameterBuilder clearAll()
Clears all existing parameters
-
asDictionary
final Map<String, String> asDictionary()
Create a Map with all the parameters
-
-
-
-