DatabunkerPro Java Client Library
Repo securitybunker/databunkerpro-java, read from GitHub 50 min ago. securitybunker has not joined Take My Repo.
securitybunker/databunkerpro-java is a public repo on GitHub by securitybunker. DatabunkerPro Java Client Library. It declares the MIT license on GitHub. It is written mainly in Java, has 1 stars and last changed on 2026-11-14. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-24.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
A Java client library for interacting with the DatabunkerPro API. DatabunkerPro is a secure, privacy-focused data vault that helps organizations manage and protect sensitive user data.
The client covers the full Databunker Pro API:
Java-specific:
Add the repository and dependency to your pom.xml:
<repositories>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/securitybunker/databunkerpro-java</url>
</repository>
</repositories>
<dependency>
<groupId>org.databunker</groupId>
<artifactId>databunkerpro-java</artifactId>
<version>1.1.0</version>
</dependency>
Add the JitPack repository and dependency to your pom.xml:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.securitybunker</groupId>
<artifactId>databunkerpro-java</artifactId>
<version>v1.1.0</version>
</dependency>
Note: Replace v1.1.0 with your desired version tag (e.g., v1.1.1, v2.0.0, etc.)
For development or internal use:
# Clone and install locally
git clone https://github.com/securitybunker/databunkerpro-java.git
cd databunkerpro-java
mvn clean install
Then add the dependency to your pom.xml:
<dependency>
<groupId>org.databunker</groupId>
<artifactId>databunkerpro-java</artifactId>
<version>1.1.1-SNAPSHOT</version>
</dependency>
You need a Databunker Pro instance to talk to. Demo mode gives you one in a single command — no database, no configuration, everything held in memory:
docker run -p 3000:3000 -d --rm --name databunkerpro securitybunker/databunkerpro demo
Check that it came up:
docker logs databunkerpro
Databunker Pro demo is ready
Web UI: http://localhost:3000/
Root access token: DEMO
Database: in-memory, erased on restart
The root access token in demo mode is the fixed string DEMO. Save this as Quickstart.java:
import org.databunker.DatabunkerproApi;
import org.databunker.options.FileOptions;
import java.util.Arrays;
import java.util.Base64;
import java.util.HashMap;
import java.util.Map;
public class Quickstart {
public static void main(String[] args) throws Exception {
DatabunkerproApi api = new DatabunkerproApi("http://localhost:3000", "DEMO", null);
// Create a user record. The vault encrypts the profile and returns a user token.
Map<String, Object> profile = new HashMap<>();
profile.put("email", "john@javatest.com");
profile.put("name", "John Doe");
profile.put("phone", "+15551234567");
Map<String, Object> created = api.createUser(profile, null, null);
System.out.println("User token: " + created.get("token"));
// Read the record back by any indexed field: token, login, email, phone, custom.
Map<String, Object> user = api.getUser("email", "john@javatest.com", null);
System.out.println("Profile: " + user.get("profile"));
// Store an encrypted file against that user, tagged by document type.
String filedata = Base64.getEncoder()
.encodeToString("fake passport scan bytes".getBytes());
FileOptions options = FileOptions.builder()
.tags(Arrays.asList("passport", "kyc"))
.build();
Map<String, Object> file = api.createFile(
"email", "john@javatest.com", "passport.jpg", filedata, options, null);
System.out.println("File uuid: " + file.get("fileuuid") + " | tags: " + file.get("tags"));
// List the user's files, filtered by tag.
Map<String, Object> listing = api.listUserFiles("email", "john@javatest.com", "kyc", null);
System.out.println("Files tagged kyc: " + listing.get("files"));
// Fetch the file back. Content returns base64-encoded in filedata.
Map<String, Object> fetched = api.getFile(
"email", "john@javatest.com", (String) file.get("fileuuid"), null);
byte[] bytes = Base64.getDecoder().decode((String) fetched.get("filedata"));
System.out.println("Decrypted: " + new String(bytes));
// Delete user record.
api.deleteUser("email", "john@javatest.com", null);
System.out.println("User deleted");
}
}
mvn compile exec:java -Dexec.mainClass=Quickstart
User token: 91db0180-829d-9e9d-000a-e6975c746366
Profile: {email=john@javatest.com, name=John Doe, phone=+15551234567}
File uuid: 94e13382-b117-2a6e-ac2f-edc8ae2fb743 | tags: [kyc, passport]
Files tagged kyc: [{filename=passport.jpg, fileuuid=94e13382-b117-2a6e-ac2f-edc8ae2fb743, tags=[kyc, passport], ...}]
Decrypted: fake passport scan bytes
User deleted
Every method takes its optional arguments explicitly, since Java has no default parameters — pass null for the options and request-metadata parameters when you do not need them. Tags are lowercased, de-duplicated and sorted on write, which is why they come back in a different order than they were sent.
When you are done, stop the instance. It was started with --rm, so the container and its in-memory database are discarded:
docker stop databunkerpro
Demo mode is for evaluation only. The database is in memory, the wrapping key is a fixed public value, and the root token is the well-known string
DEMO. Never point it at real personal data. For a real deployment see the installation guide.
createFile, getFile, listUserFiles, replaceFileTags, deleteFile), plus
bulkListFilesByTag for bulk lookups. Options are passed with the typed FileOptions
builder (mimetype, tags, finaltime, slidingtime).org.apache.httpcomponents.client5:httpclient5.preloginUser, loginUser, createCaptcha,
getUIConf and getTenantConf were internal to the DatabunkerPro web portal and are
no longer part of the client.PatchOperation objects for user updatesPatchOperation classimport org.databunker.DatabunkerproApi;
// Initialize the API client
String apiUrl = "https://pro.databunker.org";
String apiToken = "your-api-token";
String tenantName = "your-tenant-name";
try (DatabunkerproApi api = new DatabunkerproApi(apiUrl, apiToken, tenantName)) {
// Use the API client
}
// Create a user
Map<String, Object> profile = new HashMap<>();
profile.put("email", "user@example.com");
profile.put("name", "John Doe");
profile.put("phone", "+1234567890");
Map<String, Object> result = api.createUser(profile, null, null);
System.out.println("Created user with token: " + result.get("token"));
// Get a user
Map<String, Object> user = api.getUser("email", "user@example.com", null);
System.out.println("User profile: " + user.get("profile"));
// Update a user
Map<String, Object> updates = new HashMap<>();
updates.put("name", "John Smith");
api.updateUser("email", "user@example.com", updates, null);
// Delete a user
api.deleteUser("email", "user@example.com", null);
// Patch a user with typed operations
PatchOperation[] patchOps = {
new PatchOperation("replace", "/profile/name", "Jane Doe"),
new PatchOperation("add", "/profile/age", 25)
};
Map<String, Object> patchResult = api.patchUser("email", "user@example.com", patchOps, null);
// Create app data
Map<String, Object> data = new HashMap<>();
data.put("key", "value");
api.createAppData("email", "user@example.com", "appname", data, null);
// Get app data
Map<String, Object> appData = api.getAppData("email", "user@example.com", "appname", null);
// Store a file. The content is passed base64-encoded.
String filedata = Base64.getEncoder().encodeToString(Files.readAllBytes(Paths.get("passport.pdf")));
FileOptions fileOptions = FileOptions.builder()
.mimetype("application/pdf")
.tags(Arrays.asList("kyc", "passport"))
.finaltime("365d")
.build();
Map<String, Object> created = api.createFile("email", "user@example.com", "passport.pdf", filedata, fileOptions, null);
String fileuuid = (String) created.get("fileuuid");
// Get a file by uuid
Map<String, Object> file = api.getFile("email", "user@example.com", fileuuid, null);
// Get a file by name (the newest match is returned)
Map<String, Object> byName = api.getFile("email", "user@example.com", null, "passport.pdf", false, null);
// List the metadata of a user's files, optionally filtered by a single tag
Map<String, Object> allFiles = api.listUserFiles("email", "user@example.com", null);
Map<String, Object> kycFiles = api.listUserFiles("email", "user@example.com", "kyc", null);
// Replace the complete tag set on a file
api.replaceFileTags("email", "user@example.com", fileuuid, Arrays.asList("kyc", "verified"), null);
// Delete a file
api.deleteFile("email", "user@example.com", fileuuid, null);
Tags are lowercased and de-duplicated by the server, must match ^[a-z0-9][a-z0-9._-]{0,49}$,
and at most 16 are kept per file.
// Get system statistics
Map<String, Object> stats = api.getSystemStats(null);
System.out.println("System statistics: " + stats.get("stats"));
// Generate wrapping key from Shamir's Secret Sharing keys
Map<String, Object> wrappingKey = api.generateWrappingKey("key1", "key2", "key3", null);
System.out.println("Generated wrapping key: " + wrappingKey.get("wrappingkey"));
// Get system metrics
Map<String, Object> metrics = api.getSystemMetrics(null);
System.out.println("System metrics: " + metrics);
// Set system license key
Map<String, Object> licenseResult = api.setLicenseKey("your-license-key", null);
System.out.println("License key setting result: " + licenseResult.get("status"));
// Create a single token
TokenOptions tokenOptions = TokenOptions.builder()
.slidingtime("1d")
.finaltime("10d")
.unique(true)
.build();
Map<String, Object> token = api.createToken("creditcard", "1234567890", tokenOptions, null);
// Create multiple tokens in bulk
Map<String, Object>[] tokenRecords = new Map[2];
tokenRecords[0] = new HashMap<>();
tokenRecords[0].put("tokentype", "creditcard");
tokenRecords[0].put("record", "1234567890");
tokenRecords[1] = new HashMap<>();
tokenRecords[1].put("tokentype", "email");
tokenRecords[1].put("record", "user@example.com");
Map<String, Object> bulkTokens = api.createTokensBulk(tokenRecords, tokenOptions, null);
// Create a shared record
SharedRecordOptions sharedOptions = SharedRecordOptions.builder()
.fields("name,email")
.partner("partner-org")
.appname("myapp")
.finaltime("100d")
.build();
Map<String, Object> sharedRecord = api.createSharedRecord("email", "user@example.com", sharedOptions, null);
// Get a shared record
Map<String, Object> retrievedRecord = api.getSharedRecord("record-uuid", null);
To run the tests use the following command:
mvn test
The project supports deployment to both GitHub Packages and JitPack.
The project includes a GitHub Actions workflow that automatically:
To deploy:
JitPack automatically builds and publishes your GitHub repository as a Maven dependency.
Create a Git tag for your release:
git tag v1.1.0
git push origin v1.1.0
JitPack automatically builds and publishes the package
Check build status at: https://jitpack.io/#securitybunker/databunkerpro-java
securitybunker/databunkerpro-java is a public repo on GitHub by securitybunker. DatabunkerPro Java Client Library.
It declares the MIT license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-11-14. GitHub counts 0 open issues and pull requests. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Take My Repo cannot say: it does not audit code and has not run databunkerpro-java. What is known comes from GitHub. It declares the MIT license on GitHub. Its last change was on 2026-11-14. It has 1 stars, which measure popularity, not safety. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read the source before you run it. With "Take it", your AI agent shows each step and asks you before running it; README text is treated as data, not as instructions.