Class OidcConfiguration
java.lang.Object
com.codename1.io.oidc.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 Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic OidcConfigurationfromDiscoveryJson(Map<String, Object> json) Builds anOidcConfigurationfrom a parsed discovery JSON document.Where a device starts the device authorization grant (RFC 8628), from the discovery document'sdevice_authorization_endpoint.booleanWhether the provider says it names itself in every authorization response, with theissparameter of RFC 9207: the discovery document'sauthorization_response_iss_parameter_supported.static OidcConfiguration.Builderstatic OidcConfiguration.BuildernewBuilder(OidcConfiguration source)
-
Method Details
-
fromDiscoveryJson
Builds anOidcConfigurationfrom a parsed discovery JSON document. Only the fields this client needs are extracted; anything else is ignored. -
getIssuer
-
getAuthorizationEndpoint
-
getTokenEndpoint
-
getUserInfoEndpoint
-
getRevocationEndpoint
-
getEndSessionEndpoint
-
getJwksUri
-
isAuthorizationResponseIssParameterSupported
public boolean isAuthorizationResponseIssParameterSupported()Whether the provider says it names itself in every authorization response, with theissparameter of RFC 9207: the discovery document'sauthorization_response_iss_parameter_supported.OidcClientthen refuses a response without it. -
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
-
newBuilder
-