Builder
Fluent alternative to the constructor, for callers who prefer setting fields incrementally (for example when some values are only known conditionally). Equivalent to the constructor otherwise - neither is "the" supported way. Obtain one via RemoteConnectionOptions.builder.
Functions
Builds the RemoteConnectionOptions. Requires url, tokenUrl, clientId and clientSecret.
OAuth2 client id of the confidential client.
OAuth2 client secret of the confidential client.
When true (the default), Terminal polls the terminal in the background once keepAliveInterval has passed without any other call, so an idle terminal going unreachable is still noticed. See RemoteConnectionOptions.enableKeepAlive.
When true, accepts any TLS certificate (including self-signed ones) for both the token request and the terminal's own calls - only meant for local/dev environments with a self-signed certificate; never enable this against a production terminal service, since it disables all certificate validation.
How long the connection may sit idle before enableKeepAlive triggers a background keep-alive poll. Defaults to one minute.
Optional tenant, sent as X-Tenant-ID.
Full OAuth2 token endpoint to POST grant_type=client_credentials to, for example https://auth.example.com/realms/apa/protocol/openid-connect/token.
Base URL of the terminal service, for example https://terminal-service.example.com.