Agent Java SDK
Install the 6MM Agent Java SDK and use signed backend APIs for user binding, transfers, entry credentials, and webhook verification.
Official repository
The Java SDK repository is the source of truth for SDK source code, release notes, usage examples, and implementation details:
Runtime
The public GitHub repository is source hosting, not a Maven dependency repository. Build and install the tagged source locally or publish the approved artifact to your organization’s private Maven repository before using it in team builds.
Typical backend responsibilities
- Validate the partner user session.
- Map the partner user to agentUserId.
- Call bind before first trading or transfer flows.
- Call createEntryUrl for one-time full-site SSO.
- Call createEmbedToken for Trading Widget partner-token mode.
- Verify transfer webhooks and process them idempotently.
Security and operational rules
- Store
apiSecretonly in a backend secret manager or protected environment variable. - Keep server time synchronized because signed requests contain timestamps.
- Treat
agentOrderNoas a durable idempotency key and keep it globally unique. - Store
platformUserIdas a string and persist its relationship toagentUserId. - Query the original transfer before retrying after a timeout or uncertain network result.
Next steps
- Java Quick Start: install the tagged source and initialize
AgentClient. - Create Embed Token: issue short-lived credentials for Trading Widget.
- Secrets & Signing: understand automatic HMAC signing and secret handling.
- Webhooks & Idempotency: verify callbacks and prevent duplicate processing.