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

public interface TokenEndpoint.Transport

Sends one form-encoded POST.

Methods

public abstract TokenEndpoint.Response post(String uri, List<String> headers, String form) throws IOException

Method details

post

public abstract TokenEndpoint.Response post(String uri, List<String> headers, String form) throws IOException

Parameters

uri String
the token endpoint
headers List<String>
Name: value lines
form String
the application/x-www-form-urlencoded body

Returns

what the endpoint answered

Throws

IOException
when it could not be reached