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

public static final class AuthorizationServerSettings.Builder

  1. Object
  2. AuthorizationServerSettings.Builder

Methods

public AuthorizationServerSettings.Builder issuer(String issuer)
public AuthorizationServerSettings.Builder defaultAudience(String defaultAudience)The resource server an access token is for when the request that had it issued named none: its aud (RFC 9068).
public AuthorizationServerSettings.Builder authorizationEndpoint(String path)
public AuthorizationServerSettings.Builder tokenEndpoint(String path)
public AuthorizationServerSettings.Builder jwkSetEndpoint(String path)
public AuthorizationServerSettings.Builder tokenRevocationEndpoint(String path)
public AuthorizationServerSettings.Builder deviceAuthorizationEndpoint(String path)
public AuthorizationServerSettings.Builder deviceVerificationEndpoint(String path)
public AuthorizationServerSettings.Builder oidcUserInfoEndpoint(String path)
public AuthorizationServerSettings build()

Inherited methods

Method details

issuer

public AuthorizationServerSettings.Builder issuer(String issuer)

defaultAudience

public AuthorizationServerSettings.Builder defaultAudience(String defaultAudience)

The resource server an access token is for when the request that had it issued named none: its aud (RFC 9068). Also given as cn1.security.authorizationserver.audience. Unless set either way it is the issuer, which suits a server that issues tokens for its own API.

A request names a resource server with the resource parameter (RFC 8707), and the token is then for that one instead. Who the token was issued to is its client_id claim, never its audience.

authorizationEndpoint

public AuthorizationServerSettings.Builder authorizationEndpoint(String path)

tokenEndpoint

public AuthorizationServerSettings.Builder tokenEndpoint(String path)

jwkSetEndpoint

public AuthorizationServerSettings.Builder jwkSetEndpoint(String path)

tokenRevocationEndpoint

public AuthorizationServerSettings.Builder tokenRevocationEndpoint(String path)

deviceAuthorizationEndpoint

public AuthorizationServerSettings.Builder deviceAuthorizationEndpoint(String path)

deviceVerificationEndpoint

public AuthorizationServerSettings.Builder deviceVerificationEndpoint(String path)

oidcUserInfoEndpoint

public AuthorizationServerSettings.Builder oidcUserInfoEndpoint(String path)

build

public AuthorizationServerSettings build()