addBearerToken

addBearerToken(token: String) updating;

The addBearerToken method of the JadeRestRequest class adds a bearer token (for example, a JSON Web Token) to the REST request. The bearer token will be added to the Authorization: Bearer header of the request, which can be used by the REST server to authenticate the client and restrict access to the REST service.

For details, see "Associating Required JSON Web Token Claims with REST API Methods" under "REST Service Security", in Chapter 2 of the JADE Object Manager Guide.

2020.0.01 and higher