Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: castle/castle-java
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: develop
Choose a base ref
...
head repository: castle/castle-java
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: modernize-sdk
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 7 commits
  • 57 files changed
  • 1 contributor

Commits on Jun 10, 2026

  1. Add Lists, List items, Events, privacy request and webhook verificati…

    …on APIs
    
    Introduce the Lists API (createList, getAllLists, getList, queryLists,
    updateList, deleteList) and the List items API (createListItem,
    createListItemsBatch, getListItem, queryListItems, countListItems,
    updateListItem, archiveListItem, unarchiveListItem) on CastleApi.
    
    Add requestUserData for privacy data requests and the Events API
    (eventsSchema, queryEvents, groupEvents).
    
    Add Castle#verifyWebhookSignature for verifying the X-Castle-Signature
    header against the raw request body using HMAC-SHA256.
    
    Bump version to 2.2.0.
    bartes committed Jun 10, 2026
    Configuration menu
    Copy the full SHA
    a49b770 View commit details
    Browse the repository at this point in the history
  2. Document supported APIs matrix (modern vs previous)

    Add a Supported APIs section to the README listing the modern API surface
    (scoring, generic requests, lists, list items, privacy, events, webhooks)
    alongside the previous, deprecated-but-supported endpoints, and bump the
    quickstart dependency snippet to 2.2.0.
    bartes committed Jun 10, 2026
    Configuration menu
    Copy the full SHA
    4dc18d9 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2026

  1. Add deleteUserData to the privacy API

    Adds CastleApi#deleteUserData(payload) issuing DELETE /v1/privacy/users,
    alongside the existing requestUserData. Documents it in the README and
    CHANGELOG and covers it with an HTTP test.
    bartes committed Jun 11, 2026
    Configuration menu
    Copy the full SHA
    4132d82 View commit details
    Browse the repository at this point in the history
  2. Archive list items with DELETE

    Change archiveListItem to issue DELETE /v1/lists/{listId}/items/{itemId}/archive
    instead of PUT, and update the HTTP test accordingly.
    bartes committed Jun 11, 2026
    Configuration menu
    Copy the full SHA
    8d4bffd View commit details
    Browse the repository at this point in the history
  3. Run the test suite on JDK 8 through 17

    Replace the reflective Field.modifiers hack in SdkMockUtil by making the
    internal restApiFactory field non-final, build the separate-classloader test
    runner classpath from java.class.path instead of casting the system class
    loader to URLClassLoader, and open java.base packages to the test runtime on
    JDK 9+ so the environment-variable rule keeps working.
    bartes committed Jun 11, 2026
    Configuration menu
    Copy the full SHA
    1fe400b View commit details
    Browse the repository at this point in the history
  4. Add a JDK 8/11/17 GitHub Actions matrix

    Run the test suite on Temurin 8, 11 and 17 on every push and pull request,
    and pin Java 17 for local development via .tool-versions.
    bartes committed Jun 11, 2026
    Configuration menu
    Copy the full SHA
    72d01f9 View commit details
    Browse the repository at this point in the history
  5. Remove legacy endpoints and release 3.0.0

    Drop the Authenticate (authenticate/authenticateAsync), Track (track),
    device (approve/report/userDevices/device), impersonation
    (impersonateStart/impersonateEnd) and removeUser endpoints, along with the
    authenticate failover strategy configuration and the doNotTrack option, leaving
    the modern surface: risk/filter/log, generic requests, Lists, List items,
    Privacy (requestUserData/deleteUserData), Events, webhook verification and
    secureUserID. Bump the version to 3.0.0.
    bartes committed Jun 11, 2026
    Configuration menu
    Copy the full SHA
    4fc0c1c View commit details
    Browse the repository at this point in the history
Loading