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

public static final class RegisteredClient.Builder

  1. Object
  2. RegisteredClient.Builder

Methods

public RegisteredClient.Builder clientId(String clientId)
public RegisteredClient.Builder clientSecret(String encodedClientSecret)The secret as the encoder wrote it: encoder.encode(secret).
public RegisteredClient.Builder clientName(String clientName)
public RegisteredClient.Builder clientAuthenticationMethod(ClientAuthenticationMethod method)
public RegisteredClient.Builder authorizationGrantType(AuthorizationGrantType grantType)
public RegisteredClient.Builder redirectUri(String redirectUri)
public RegisteredClient.Builder scope(String scope)
public RegisteredClient.Builder resource(String resource)A resource server this client may ask for tokens for, named as the client names it in the resource parameter of a request (RFC 8707): an absolute address with no fragment, compared whole.
public RegisteredClient.Builder clientSettings(ClientSettings clientSettings)
public RegisteredClient.Builder tokenSettings(TokenSettings tokenSettings)
public RegisteredClient build()

Inherited methods

Method details

clientId

public RegisteredClient.Builder clientId(String clientId)

clientSecret

public RegisteredClient.Builder clientSecret(String encodedClientSecret)
The secret as the encoder wrote it: encoder.encode(secret).

clientName

public RegisteredClient.Builder clientName(String clientName)

clientAuthenticationMethod

public RegisteredClient.Builder clientAuthenticationMethod(ClientAuthenticationMethod method)

authorizationGrantType

public RegisteredClient.Builder authorizationGrantType(AuthorizationGrantType grantType)

redirectUri

public RegisteredClient.Builder redirectUri(String redirectUri)

scope

public RegisteredClient.Builder scope(String scope)

resource

public RegisteredClient.Builder resource(String resource)

A resource server this client may ask for tokens for, named as the client names it in the resource parameter of a request (RFC 8707): an absolute address with no fragment, compared whole.

An access token’s aud is what the request asked for with resource, or the server’s default audience when it asked for nothing; see AuthorizationServerSettings.Builder.defaultAudience. A client registered with resources is refused any other with invalid_target. One registered with none may name any: the audience limits where a token is accepted, and a client that could not be trusted to choose it should be given a list.

clientSettings

public RegisteredClient.Builder clientSettings(ClientSettings clientSettings)

tokenSettings

public RegisteredClient.Builder tokenSettings(TokenSettings tokenSettings)

build

public RegisteredClient build()