public class AuthorizationServiceDiscovery
extends java.lang.Object
An OpenID Connect 1.0 Discovery Document.
| Modifier and Type | Class and Description |
|---|---|
static class |
AuthorizationServiceDiscovery.MissingArgumentException
Thrown when a mandatory property is missing from the discovery document.
|
| Modifier and Type | Field and Description |
|---|---|
org.json.JSONObject |
docJson
The JSON representation of the discovery document.
|
| Constructor and Description |
|---|
AuthorizationServiceDiscovery(org.json.JSONObject discoveryDoc)
Extracts a discovery document from its standard JSON representation.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getAcrValuesSupported()
The authentication context class references supported.
|
android.net.Uri |
getAuthorizationEndpoint()
The OAuth 2 authorization endpoint URI.
|
java.util.List<java.lang.String> |
getClaimsLocalesSupported()
Languages and scripts supported for values in claims being returned.
|
java.util.List<java.lang.String> |
getClaimsSupported()
The claim names of the claims that the provider may be able to supply values for.
|
java.util.List<java.lang.String> |
getClaimTypesSupported()
The claim types supported.
|
java.util.List<java.lang.String> |
getDisplayValuesSupported()
The
display parameter values supported. |
java.util.List<java.lang.String> |
getGrantTypesSupported()
The OAuth 2
grant_type values supported. |
java.util.List<java.lang.String> |
getIdTokenEncryptionAlgorithmValuesSupported()
The JWE encryption algorithms (alg values) supported for encoding ID token claims.
|
java.util.List<java.lang.String> |
getIdTokenEncryptionEncodingValuesSupported()
The JWE encryption encodings (enc values) supported for encoding ID token claims.
|
java.util.List<java.lang.String> |
getIdTokenSigningAlgorithmValuesSupported()
The JWS signing algorithms (alg values) supported for encoding ID token claims.
|
java.lang.String |
getIssuer()
The asserted issuer identifier.
|
android.net.Uri |
getJwksUri()
The JSON web key set document URI.
|
android.net.Uri |
getOpPolicyUri()
A page articulating the policy regarding the use of data provided by the provider.
|
android.net.Uri |
getOpTosUri()
A page articulating the terms of service for the provider.
|
android.net.Uri |
getRegistrationEndpoint()
The dynamic client registration endpoint URI.
|
java.util.List<java.lang.String> |
getRequestObjectEncryptionAlgorithmValuesSupported()
The JWE encryption algorithms (alg values) supported for Request Objects.
|
java.util.List<java.lang.String> |
getRequestObjectEncryptionEncodingValuesSupported()
The JWE encryption encodings (enc values) supported for Request Objects.
|
java.util.List<java.lang.String> |
getRequestObjectSigningAlgorithmValuesSupported()
The JWS signing algorithms (alg values) supported for Request Objects.
|
java.util.List<java.lang.String> |
getResponseModesSupported()
The OAuth 2
response_mode values supported. |
java.util.List<java.lang.String> |
getResponseTypesSupported()
The OAuth 2
response_type values supported. |
java.util.List<java.lang.String> |
getScopesSupported()
The OAuth 2
scope values supported. |
android.net.Uri |
getServiceDocumentation()
A page containing human-readable information that developers might want or need to know when
using this provider.
|
java.util.List<java.lang.String> |
getSubjectTypesSupported()
The subject identifier types supported.
|
android.net.Uri |
getTokenEndpoint()
The OAuth 2 token endpoint URI.
|
java.util.List<java.lang.String> |
getTokenEndpointAuthMethodsSupported()
The client authentication methods supported by the token endpoint.
|
java.util.List<java.lang.String> |
getTokenEndpointAuthSigningAlgorithmValuesSupported()
The JWS signing algorithms (alg values) supported by the token endpoint for the signature on
the JWT used to authenticate the client for the
private_key_jwt and
client_secret_jwt authentication methods. |
java.util.List<java.lang.String> |
getUiLocalesSupported()
Languages and scripts supported for the user interface.
|
java.util.List<java.lang.String> |
getUserinfoEncryptionAlgorithmValuesSupported()
The JWE encryption algorithms (alg values) supported by the UserInfo Endpoint
for encoding ID token claims.
|
java.util.List<java.lang.String> |
getUserinfoEncryptionEncodingValuesSupported()
The JWE encryption encodings (enc values) supported by the UserInfo Endpoint
for encoding ID token claims.
|
android.net.Uri |
getUserinfoEndpoint()
The OpenID Connect UserInfo endpoint URI.
|
java.util.List<java.lang.String> |
getUserinfoSigningAlgorithmValuesSupported()
The JWS signing algorithms (alg values) supported by the UserInfo Endpoint
for encoding ID token claims.
|
boolean |
isClaimsParameterSupported()
Specifies whether the
claims parameter is supported for authorization requests. |
boolean |
isRequestParameterSupported()
Specifies whether the
request parameter is supported for authorization requests. |
boolean |
isRequestUriParameterSupported()
Specifies whether the
request_uri parameter is supported for authorization requests. |
boolean |
requireRequestUriRegistration()
Specifies whether
request_uri values are required to be pre-registered before use. |
@NonNull public final org.json.JSONObject docJson
The JSON representation of the discovery document.
public AuthorizationServiceDiscovery(@NonNull
org.json.JSONObject discoveryDoc)
throws org.json.JSONException,
AuthorizationServiceDiscovery.MissingArgumentException
Extracts a discovery document from its standard JSON representation.
org.json.JSONException - if the provided JSON does not match the expected structure.AuthorizationServiceDiscovery.MissingArgumentException - if a mandatory property is missing from the discovery
document.@NonNull public java.lang.String getIssuer()
The asserted issuer identifier.
@NonNull public android.net.Uri getAuthorizationEndpoint()
The OAuth 2 authorization endpoint URI.
@Nullable public android.net.Uri getTokenEndpoint()
The OAuth 2 token endpoint URI. Not specified if only the implicit flow is used.
@Nullable public android.net.Uri getUserinfoEndpoint()
The OpenID Connect UserInfo endpoint URI.
@NonNull public android.net.Uri getJwksUri()
The JSON web key set document URI.
@Nullable public android.net.Uri getRegistrationEndpoint()
The dynamic client registration endpoint URI.
public java.util.List<java.lang.String> getScopesSupported()
The OAuth 2 scope values supported.
@NonNull public java.util.List<java.lang.String> getResponseTypesSupported()
The OAuth 2 response_type values supported.
@Nullable public java.util.List<java.lang.String> getResponseModesSupported()
The OAuth 2 response_mode values supported.
@NonNull public java.util.List<java.lang.String> getGrantTypesSupported()
The OAuth 2 grant_type values supported. Defaults to authorization_code and implicit
if not specified in the discovery document, as suggested by the discovery specification.
public java.util.List<java.lang.String> getAcrValuesSupported()
The authentication context class references supported.
@NonNull public java.util.List<java.lang.String> getSubjectTypesSupported()
The subject identifier types supported.
@NonNull public java.util.List<java.lang.String> getIdTokenSigningAlgorithmValuesSupported()
The JWS signing algorithms (alg values) supported for encoding ID token claims.
@Nullable public java.util.List<java.lang.String> getIdTokenEncryptionAlgorithmValuesSupported()
The JWE encryption algorithms (alg values) supported for encoding ID token claims.
@Nullable public java.util.List<java.lang.String> getIdTokenEncryptionEncodingValuesSupported()
The JWE encryption encodings (enc values) supported for encoding ID token claims.
@Nullable public java.util.List<java.lang.String> getUserinfoSigningAlgorithmValuesSupported()
The JWS signing algorithms (alg values) supported by the UserInfo Endpoint for encoding ID token claims.
@Nullable public java.util.List<java.lang.String> getUserinfoEncryptionAlgorithmValuesSupported()
The JWE encryption algorithms (alg values) supported by the UserInfo Endpoint for encoding ID token claims.
@Nullable public java.util.List<java.lang.String> getUserinfoEncryptionEncodingValuesSupported()
The JWE encryption encodings (enc values) supported by the UserInfo Endpoint for encoding ID token claims.
public java.util.List<java.lang.String> getRequestObjectSigningAlgorithmValuesSupported()
The JWS signing algorithms (alg values) supported for Request Objects.
@Nullable public java.util.List<java.lang.String> getRequestObjectEncryptionAlgorithmValuesSupported()
The JWE encryption algorithms (alg values) supported for Request Objects.
@Nullable public java.util.List<java.lang.String> getRequestObjectEncryptionEncodingValuesSupported()
The JWE encryption encodings (enc values) supported for Request Objects.
@NonNull public java.util.List<java.lang.String> getTokenEndpointAuthMethodsSupported()
The client authentication methods supported by the token endpoint. Defaults to
client_secret_basic if the discovery document does not specify a value, as suggested
by the discovery specification.
@Nullable public java.util.List<java.lang.String> getTokenEndpointAuthSigningAlgorithmValuesSupported()
The JWS signing algorithms (alg values) supported by the token endpoint for the signature on
the JWT used to authenticate the client for the private_key_jwt and
client_secret_jwt authentication methods.
@Nullable public java.util.List<java.lang.String> getDisplayValuesSupported()
The display parameter values supported.
public java.util.List<java.lang.String> getClaimTypesSupported()
The claim types supported. Defaults to normal if not specified by the discovery
document JSON, as suggested by the discovery specification.
@Nullable public java.util.List<java.lang.String> getClaimsSupported()
The claim names of the claims that the provider may be able to supply values for.
@Nullable public android.net.Uri getServiceDocumentation()
A page containing human-readable information that developers might want or need to know when using this provider.
@Nullable public java.util.List<java.lang.String> getClaimsLocalesSupported()
Languages and scripts supported for values in claims being returned. Represented as a list of BCP47 language tag values.
@Nullable public java.util.List<java.lang.String> getUiLocalesSupported()
Languages and scripts supported for the user interface. Represented as a list of BCP47 language tag values.
public boolean isClaimsParameterSupported()
Specifies whether the claims parameter is supported for authorization requests.
public boolean isRequestParameterSupported()
Specifies whether the request parameter is supported for authorization requests.
public boolean isRequestUriParameterSupported()
Specifies whether the request_uri parameter is supported for authorization requests.
public boolean requireRequestUriRegistration()
Specifies whether request_uri values are required to be pre-registered before use.
@Nullable public android.net.Uri getOpPolicyUri()
A page articulating the policy regarding the use of data provided by the provider.
@Nullable public android.net.Uri getOpTosUri()
A page articulating the terms of service for the provider.