Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public static final class ClientRegistration.ProviderDetails

  1. Object
  2. ClientRegistration.ProviderDetails
Where the provider is.

Methods

public String getAuthorizationUri()
public String getTokenUri()
public String getUserInfoUri()Where the user’s attributes are read from, or null.
public String getUserEmailsUri()The attribute that names the user; sub for an OpenID Connect provider that says nothing else.
public String getUserNameAttributeName()
public String getJwkSetUri()Where the keys that sign ID tokens are published, or null.
public String getIssuerUri()The iss every ID token must carry, or null.
public String getIssuerTemplate()For a provider that issues under one address per tenant: the issuer with {tenantid} where the token’s tid claim goes.
public String[] getIdTokenAlgorithms()The names of the algorithms an ID token may be signed with, or null for what the metadata says, and RS256 and ES256 when there is none.
public boolean isAuthorizationResponseIssParameterSupported()Whether the provider says it names itself in every answer it sends back with the browser: the iss parameter of RFC 9207, announced in its metadata as authorization_response_iss_parameter_supported.
public boolean isIssuer(String issuer)Whether issuer is this provider: its getIssuerUri, character for character, or for a provider with one issuer per tenant its getIssuerTemplate with a tenant id where {tenantid} is.

Inherited methods

Method details

getAuthorizationUri

public String getAuthorizationUri()

getTokenUri

public String getTokenUri()

getUserInfoUri

public String getUserInfoUri()
Where the user’s attributes are read from, or null.

getUserEmailsUri

public String getUserEmailsUri()
The attribute that names the user; sub for an OpenID Connect provider that says nothing else. Where the provider lists the user’s email addresses and says which of them it has verified, for one whose user info says nothing of that: GitHub’s /user/emails. Null for a provider that has none. It answers a JSON array of {"email", "primary", "verified"}, and LinkingOAuth2UserService reads the primary verified one from it.

getUserNameAttributeName

public String getUserNameAttributeName()

getJwkSetUri

public String getJwkSetUri()
Where the keys that sign ID tokens are published, or null.

getIssuerUri

public String getIssuerUri()
The iss every ID token must carry, or null.

getIssuerTemplate

public String getIssuerTemplate()
For a provider that issues under one address per tenant: the issuer with {tenantid} where the token’s tid claim goes. Null otherwise.

getIdTokenAlgorithms

public String[] getIdTokenAlgorithms()
The names of the algorithms an ID token may be signed with, or null for what the metadata says, and RS256 and ES256 when there is none.

isAuthorizationResponseIssParameterSupported

public boolean isAuthorizationResponseIssParameterSupported()
Whether the provider says it names itself in every answer it sends back with the browser: the iss parameter of RFC 9207, announced in its metadata as authorization_response_iss_parameter_supported. An answer without one is then refused.

isIssuer

public boolean isIssuer(String issuer)
Whether issuer is this provider: its getIssuerUri, character for character, or for a provider with one issuer per tenant its getIssuerTemplate with a tenant id where {tenantid} is. False when the registration names no issuer at all.