Get Started with Cactus SDK
Download Demo
To run the demo and test your integration with the Cactus Custody SDK, follow the steps below.
Checksum validation for security
7ebc17eadcc3c39d9aded1b813c9635d88375ac9f1b185ef6d1559985b1595a7
Note: The SHA256 checksum value is not case sensitive. You may enter it in either uppercase or lowercase — both are considered valid.
How to validate
macOS/Linux:
shasum -a 256 cactus-sdk-java.zip
Windows PowerShell:
Get-FileHash cactus-sdk-java.zip -Algorithm SHA256
If the output matches the SHA256 hash provided above, the file is intact and safe to use.
Prerequisites
- Set up your enterprise account on the Cactus Custody.
- Obtain your API credentials (AK ID, API Key).
Execution Steps
Set the Signing Key Path : Update the following line in
util/ConfigUtil.java
.public static final String SIGN_PRIVATE_PATH = "classpath:mypriv.jks";
Note: Ensure that you have copy over your JKS file into the resources file.
Start the Demo : Run the main method in
proxy/CustodyDemo.java
.Note: Be sure to modify the configuration in
ConfigUtil.java
to reflect your environment variables and account-specific values.
Folder Structure
Path | Description |
---|---|
proxy/CustodyDemo.java |
Entry point. Main API proxy corresponding to the API documentation |
util/CustodyHttpUtil.java |
Encapsulates HTTP headers required for calling the custody APIs |
util/ConfigUtil.java |
Holds static configuration values such as URLs and key paths |
util/DateUtil.java |
Helper for time/date formatting and calculation |
util/HttpClientUtil.java |
Generic HTTP utility for making requests |
util/IOUtil.java |
File and IO utility helpers |
util/SignUtil.java |
Handles digital signature creation and verification |