public class EndSessionRequest extends java.lang.Object implements AuthorizationManagementRequest
An OpenID end session request.
| Modifier and Type | Class and Description |
|---|---|
static class |
EndSessionRequest.Builder
Creates instances of
EndSessionRequest. |
| 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.
|
AuthorizationServiceConfiguration |
configuration
The service’s
configuration. |
java.lang.String |
idTokenHint
Previously issued ID Token passed to the end session endpoint as a hint about the End-User’s
current authenticated session with the Client
|
android.net.Uri |
postLogoutRedirectUri
The client’s redirect URI.
|
java.lang.String |
state
An opaque value used by the client to maintain state between the request and callback.
|
java.lang.String |
uiLocales
This is a space-separated list of BCP47 [RFC5646] language tag values, ordered by preference.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getState()
An opaque value used by the client to maintain state between the request and callback.
|
java.util.Set<java.lang.String> |
getUiLocales() |
static EndSessionRequest |
jsonDeserialize(org.json.JSONObject json)
Reads an authorization request from a JSON string representation produced by
jsonSerialize(). |
static EndSessionRequest |
jsonDeserialize(java.lang.String jsonStr)
Reads an authorization request from a JSON string representation produced by
jsonSerializeString(). |
org.json.JSONObject |
jsonSerialize()
Produces a JSON representation of the end session request for persistent storage or local
transmission (e.g.
|
java.lang.String |
jsonSerializeString()
Produces a JSON string representation of the request for persistent storage or
local transmission (e.g.
|
android.net.Uri |
toUri()
Produces a request URI, that can be used to dispatch the request.
|
@NonNull public final AuthorizationServiceConfiguration configuration
The service’s configuration.
This configuration specifies how to connect to a particular OAuth provider.
Configurations may be
AuthorizationServiceConfiguration(Uri, Uri, Uri, Uri)
created manually}, or AuthorizationServiceConfiguration.fetchFromUrl(Uri,
AuthorizationServiceConfiguration.RetrieveConfigurationCallback) via an OpenID Connect
Discovery Document}.
@Nullable public final java.lang.String idTokenHint
Previously issued ID Token passed to the end session endpoint as a hint about the End-User’s current authenticated session with the Client
@Nullable public final android.net.Uri postLogoutRedirectUri
The client’s redirect URI.
@Nullable public final java.lang.String state
An opaque value used by the client to maintain state between the request and callback. If this value is not explicitly set, this library will automatically add state and perform appropriate validation of the state in the authorization response. It is recommended that the default implementation of this parameter be used wherever possible. Typically used to prevent CSRF attacks, as recommended in
@Nullable public final java.lang.String uiLocales
This is a space-separated list of BCP47 [RFC5646] language tag values, ordered by preference. It represents End-User’s preferred languages and scripts for the user interface.
@NonNull public final java.util.Map<java.lang.String,java.lang.String> additionalParameters
Additional parameters to be passed as part of the request.
@Nullable public java.lang.String getState()
AuthorizationManagementRequestAn opaque value used by the client to maintain state between the request and callback.
getState in interface AuthorizationManagementRequestpublic java.util.Set<java.lang.String> getUiLocales()
public android.net.Uri toUri()
AuthorizationManagementRequestProduces a request URI, that can be used to dispatch the request.
toUri in interface AuthorizationManagementRequestpublic org.json.JSONObject jsonSerialize()
Produces a JSON representation of the end session request for persistent storage or local transmission (e.g. between activities).
jsonSerialize in interface AuthorizationManagementRequestpublic java.lang.String jsonSerializeString()
Produces a JSON string representation of the 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.
jsonSerializeString in interface AuthorizationManagementRequestpublic static EndSessionRequest jsonDeserialize(@NonNull org.json.JSONObject json) throws org.json.JSONException
Reads an authorization request from a JSON string representation produced by
jsonSerialize().
org.json.JSONException - if the provided JSON does not match the expected structure.@NonNull public static EndSessionRequest jsonDeserialize(@NonNull java.lang.String jsonStr) throws org.json.JSONException
Reads an authorization 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.