Skip to content

Java SDK

View as Markdown

The Java SDK is a Gradle multi-module project targeting JDK 17. The token module is available as an alpha package today; Connect, Session, and Native modules are planned.

ModuleMaven coordinatesUse it forStatus
tokencom.sudomimus:sudomimus-tokenParse and verify Sudomimus access, refresh, and OIDC ID tokens.Alpha
connectcom.sudomimus:sudomimus-connectConnect inquiry lifecycle: establish, status poll, redeem, and info.Planned
sessioncom.sudomimus:sudomimus-sessionRefresh-token lifecycle: refresh, introspect, logout, and revoke-all.Planned
nativecom.sudomimus:sudomimus-nativeSteam ticket and AccessKey direct-issue.Planned

Add the token module from your package registry once published:

dependencies {
implementation("com.sudomimus:sudomimus-token")
}

Use the token module in services that receive Sudomimus JWTs and need local verification. Resolve the token’s kid from the configured application’s Session JWK Set at GET /applications/{applicationAnchor}/jwks.json; do not derive the URL from an untrusted audience. Cache the set according to its HTTP response headers and refresh once when a kid is unknown.

The verification contract matches the other SDKs: parse the JWT, require RS256 and the expected token kind and audience, require a non-empty kid, check expiration, select that JWK, and verify the RSA-SHA256 signature.