RestClient
Constructs a RestClient with the given clientInfo, authToken, httpAccessor and authTokenProvider. When it gets a 401 (not authorized) response from the server:
- If authTokenProvider is not null, it will ask the authTokenProvider for a new access token and retry the request a second time.
- Otherwise it will return the 401 response.
Parameters
Constructs a RestClient with the given clientInfo, authToken, tokenType, httpAccessor and authTokenProvider. The tokenType determines the Authorization header scheme (e.g. "Bearer" or "DPoP").
Parameters
Constructs a RestClient with the given clientInfo, authToken, tokenType, credentialsIdentifier, httpAccessor and authTokenProvider. The tokenType determines the Authorization header scheme (e.g. "Bearer" or "DPoP"). The credentialsIdentifier is used to look up the DPoP key pair.
Parameters
Constructs a RestClient with all credential fields used to authenticate requests.
Parameters
UI session ID used as a Bearer token only when the request-path policy selects it