public class RegistrationRequest extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RegistrationRequest.Builder
Creates instances of
RegistrationRequest. |
| Modifier and Type | Field and Description |
|---|---|
Map<String,String> |
additionalParameters
Additional parameters to be passed as part of the request.
|
static String |
APPLICATION_TYPE_NATIVE
OpenID Connect ‘application_type’.
|
String |
applicationType
The application type to register, will always be ‘native’.
|
AuthorizationServiceConfiguration |
configuration
The service’s
configuration. |
List<String> |
grantTypes
The grant types to use.
|
List<android.net.Uri> |
redirectUris
The client’s redirect URI’s.
|
List<String> |
responseTypes
The response types to use.
|
static String |
SUBJECT_TYPE_PAIRWISE
Instructs the authorization server to generate a pairwise subject identifier.
|
static String |
SUBJECT_TYPE_PUBLIC
Instructs the authorization server to generate a public subject identifier.
|
String |
subjectType
The subject type to use.
|
String |
tokenEndpointAuthenticationMethod
The client authentication method to use at the token endpoint.
|
| Modifier and Type | Method and Description |
|---|---|
static RegistrationRequest |
jsonDeserialize(org.json.JSONObject json)
Reads a registration request from a JSON string representation produced by
jsonSerialize(). |
static RegistrationRequest |
jsonDeserialize(String jsonStr)
Reads a registration request from a JSON string representation produced by
jsonSerializeString(). |
org.json.JSONObject |
jsonSerialize()
Produces a JSON representation of the registration request for persistent storage or
local transmission (e.g.
|
String |
jsonSerializeString()
Produces a JSON string representation of the registration request for persistent storage or
local transmission (e.g.
|
String |
toJsonString()
Converts the registration request to JSON for transmission to an authorization service.
|
public static final String APPLICATION_TYPE_NATIVE
OpenID Connect ‘application_type’.
public static final String SUBJECT_TYPE_PAIRWISE
Instructs the authorization server to generate a pairwise subject identifier.
public static final String SUBJECT_TYPE_PUBLIC
Instructs the authorization server to generate a public subject identifier.
@NonNull public final AuthorizationServiceConfiguration configuration
The service’s configuration.
This configuration specifies how to connect to a particular OAuth provider.
Configurations may be
created manually, or
via an OpenID Connect Discovery Document.
@NonNull public final List<android.net.Uri> redirectUris
The client’s redirect URI’s.
@NonNull public final String applicationType
The application type to register, will always be ‘native’.
@Nullable public final List<String> responseTypes
The response types to use.
@Nullable public final String subjectType
The subject type to use.
@Nullable public final String tokenEndpointAuthenticationMethod
The client authentication method to use at the token endpoint.
@NonNull public String toJsonString()
Converts the registration request to JSON for transmission to an authorization service.
For local persistence and transmission, use jsonSerialize().
@NonNull public org.json.JSONObject jsonSerialize()
Produces a JSON representation of the registration request for persistent storage or local transmission (e.g. between activities).
@NonNull public String jsonSerializeString()
Produces a JSON string representation of the registration request for persistent storage or
local transmission (e.g. between activities). This method is just a convenience wrapper
for jsonSerialize(), converting the JSON object to its string form.
public static RegistrationRequest jsonDeserialize(@NonNull org.json.JSONObject json) throws org.json.JSONException
Reads a registration request from a JSON string representation produced by
jsonSerialize().
org.json.JSONException - if the provided JSON does not match the expected structure.public static RegistrationRequest jsonDeserialize(@NonNull String jsonStr) throws org.json.JSONException
Reads a registration request from a JSON string representation produced by
jsonSerializeString(). This method is just a convenience wrapper for
jsonDeserialize(JSONObject), converting the JSON string to its JSON object form.
org.json.JSONException - if the provided JSON does not match the expected structure.