Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public final class OidcConfiguration
- Object
- OidcConfiguration
The subset of an OpenID Connect provider’s .well-known/openid-configuration
document that OidcClient cares about. Construct directly when you already
know the endpoints, or obtain via OidcClient.discover(String) which fetches
and parses the document.
All fields are immutable after construction. Use newBuilder() to start
from a blank slate; use newBuilder(OidcConfiguration) to derive one from
an existing instance.
Nested types
class OidcConfiguration.Builder | Fluent builder for OidcConfiguration. |
Methods
public static OidcConfiguration fromDiscoveryJson(Map<String, Object> json) | Builds an OidcConfiguration from a parsed discovery JSON document. |
public String getIssuer() | |
public String getAuthorizationEndpoint() | |
public String getTokenEndpoint() | |
public String getUserInfoEndpoint() | |
public String getRevocationEndpoint() | |
public String getEndSessionEndpoint() | |
public String getJwksUri() | |
public boolean isAuthorizationResponseIssParameterSupported() | Whether the provider says it names itself in every authorization response, with the iss parameter of RFC 9207: the discovery document’s authorization_response_iss_parameter_supported. |
public String getDeviceAuthorizationEndpoint() | Where a device starts the device authorization grant (RFC 8628), from the discovery document’s device_authorization_endpoint. |
public static OidcConfiguration.Builder newBuilder() | |
public static OidcConfiguration.Builder newBuilder(OidcConfiguration source) |
Inherited methods
Method details
fromDiscoveryJson
public static OidcConfiguration fromDiscoveryJson(Map<String, Object> json)Builds an
OidcConfiguration from a parsed discovery JSON document.
Only the fields this client needs are extracted; anything else is ignored.getIssuer
public String getIssuer()getAuthorizationEndpoint
public String getAuthorizationEndpoint()getTokenEndpoint
public String getTokenEndpoint()getUserInfoEndpoint
public String getUserInfoEndpoint()getRevocationEndpoint
public String getRevocationEndpoint()getEndSessionEndpoint
public String getEndSessionEndpoint()getJwksUri
public String getJwksUri()isAuthorizationResponseIssParameterSupported
public boolean isAuthorizationResponseIssParameterSupported()Whether the provider says it names itself in every authorization response, with the
iss parameter of RFC 9207: the discovery document’s
authorization_response_iss_parameter_supported. OidcClient then refuses a
response without it.getDeviceAuthorizationEndpoint
public String getDeviceAuthorizationEndpoint()Where a device starts the device authorization grant (RFC 8628), from the discovery
document’s
device_authorization_endpoint.Returns
the endpoint, or null when the provider does not offer the grant
newBuilder
public static OidcConfiguration.Builder newBuilder()newBuilder
public static OidcConfiguration.Builder newBuilder(OidcConfiguration source)