Gets the JWT connection for SFAP API calls. Use this for all requests to api.salesforce.com/einstein/ai-agent endpoints.
The JWT connection
Gets the standard (non-JWT) connection for org-instance operations. Use this for SOQL queries, metadata operations, tooling API, etc.
The standard connection
Inspects the current JWT and provides diagnostic information. Useful for debugging and troubleshooting JWT-related issues.
JWT validation result with detailed diagnostic information
StaticcreateCreates a new ConnectionManager instance.
Builds two separate Connection objects derived from the username on the supplied connection: a standard connection for org-instance operations (SOQL, tooling, metadata) and a JWT-upgraded connection for SFAP API calls. The supplied connection is read-only — it is never mutated.
The connection whose username is used to derive the new connections
A new ConnectionManager instance
Manages JWT and standard connections for agent operations.
This class provides:
Example