Creates a new Security instance with Bearer Token Authentication credentials.
The base URL of the Checkmarx instance (e.g., https://checkmarx.example.com).
Must be a valid URL; throws if it cannot be parsed.
The bearer token or refresh token to authenticate with
Returns the base URL of the Checkmarx instance, without a trailing slash.
The API base URL
Returns the value of the Authorization header for Bearer Authentication.
The Authorization header value in the format Bearer <access_token>
Returns the full set of HTTP headers required for authenticated API requests.
An object containing Authorization, Content-Type, and Accept headers
Updates the Authorization header with a new access token obtained from the auth endpoint. Called automatically by CheckmarxClient.authenticate after a successful token exchange.
The token type returned by the auth endpoint (e.g., 'Bearer')
The access token returned by the auth endpoint
Handles Bearer Token Authentication for Checkmarx On-Premise REST API requests.
Example