public class RegistrationRequest
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RegistrationRequest.Builder
Creates instances of
RegistrationRequest. |
| Modifier and Type | Field and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
additionalParameters
Additional parameters to be passed as part of the request.
|
static java.lang.String |
APPLICATION_TYPE_NATIVE
OpenID Connect ‘application_type’.
|
java.lang.String |
applicationType
The application type to register, will always be ‘native’.
|
AuthorizationServiceConfiguration |
configuration
The service’s
configuration. |
java.util.List<java.lang.String> |
grantTypes
The grant types to use.
|
java.util.List<android.net.Uri> |
redirectUris
The client’s redirect URI’s.
|
java.util.List<java.lang.String> |
responseTypes
The response types to use.
|
static java.lang.String |
SUBJECT_TYPE_PAIRWISE
Instructs the authorization server to generate a pairwise subject identifier.
|
static java.lang.String |
SUBJECT_TYPE_PUBLIC
Instructs the authorization server to generate a public subject identifier.
|
java.lang.String |
subjectType
The subject type to use.
|
java.lang.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(java.lang.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.
|
java.lang.String |
jsonSerializeString()
Produces a JSON string representation of the registration request for persistent storage or
local transmission (e.g.
|
java.lang.String |
toJsonString()
Converts the registration request to JSON for transmission to an authorization service.
|
public static final java.lang.String APPLICATION_TYPE_NATIVE
OpenID Connect ‘application_type’.
public static final java.lang.String SUBJECT_TYPE_PAIRWISE
Instructs the authorization server to generate a pairwise subject identifier.
public static final java.lang.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 java.util.List<android.net.Uri> redirectUris
The client’s redirect URI’s.
@NonNull public final java.lang.String applicationType
The application type to register, will always be ‘native’.
@Nullable public final java.util.List<java.lang.String> responseTypes
The response types to use.
@Nullable public final java.util.List<java.lang.String> grantTypes
The grant types to use.
@Nullable public final java.lang.String subjectType
The subject type to use.
@Nullable public final java.lang.String tokenEndpointAuthenticationMethod
The client authentication method to use at the token endpoint.
@NonNull public final java.util.Map<java.lang.String,java.lang.String> additionalParameters
Additional parameters to be passed as part of the request.
@NonNull public java.lang.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 java.lang.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 java.lang.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.