Class PendingOidcLogout
java.lang.Object
com.revetsec.oidc.PendingOidcLogout
One bounded pending logout correlation record, separate from login. It holds no ID token, nonce, PKCE verifier,
access/refresh credential or authentication proof. Browser delivery requires SAVED on the store path. A sealed
cookie must be cleared on every callback and supplies no atomic concurrent single-use guarantee.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionReturns the fixed registered logout callback.Returns the configured client identifier.Returns when correlation state was created.Returns exact expiry; equality is expired.Returns the configured issuer, not authenticated identity.saveToResult(@NonNull PendingAuthorizationStore store, @NonNull BrowserBinding browserBinding) Saves using a five-second convenience budget.saveToResult(@NonNull PendingAuthorizationStore store, @NonNull BrowserBinding browserBinding, @NonNull Duration remaining) Saves the complete browser-bound record under one shrinking caller budget.toSealedForm(@NonNull StateSealer sealer, @NonNull String context) Seals under the dedicated pending-logout type and exact expiry.toString()Redacts state and browser data.
-
Method Details
-
getIssuer
-
getClientId
Returns the configured client identifier.- Returns:
- client identifier
- Since:
- 1.0.0
-
getCallbackUri
Returns the fixed registered logout callback.- Returns:
- callback URI
- Since:
- 1.0.0
-
getCreatedAt
Returns when correlation state was created.- Returns:
- creation instant
- Since:
- 1.0.0
-
getExpiresAt
Returns exact expiry; equality is expired.- Returns:
- expiry instant
- Since:
- 1.0.0
-
toSealedForm
Seals under the dedicated pending-logout type and exact expiry. Cookie size is limited by the existing sealer profile; no cap is raised. Clear the browser cookie on every callback, including failure/exception paths.- Parameters:
sealer- application-owned sealercontext- fixed browser-cookie context- Returns:
- typed sealed pending cookie
- Throws:
NullPointerException- if a required argument is nullOidcLogoutException- if the storage profile, interruption or provider prevents sealing- Since:
- 1.0.0
-
saveToResult
@CheckReturnValue public @NonNull PendingAuthorizationSaveResult saveToResult(@NonNull PendingAuthorizationStore store, @NonNull BrowserBinding browserBinding) Saves using a five-second convenience budget. Only SAVED permits browser delivery; uncertain writes are never retried.- Parameters:
store- trusted opaque atomic storebrowserBinding- nonempty browser-specific secret, at most512UTF8bytes- Returns:
- fixed save outcome
- Since:
- 1.0.0
-
saveToResult
@CheckReturnValue public @NonNull PendingAuthorizationSaveResult saveToResult(@NonNull PendingAuthorizationStore store, @NonNull BrowserBinding browserBinding, @NonNull Duration remaining) Saves the complete browser-bound record under one shrinking caller budget. UNAVAILABLE before provider entry has no save effect. A late/null/throwing/possibly completed store call returns INDETERMINATE, never safe retry. Existing store capacities apply and may refuse this record without evicting live state.- Parameters:
store- trusted opaque atomic storebrowserBinding- nonempty browser-specific secret, at most512UTF8bytesremaining- the caller's remaining operation budget- Returns:
- fixed save outcome; only SAVED permits browser delivery
- Throws:
NullPointerException- if a required argument is nullIllegalArgumentException- if browser binding is outside the profile- Since:
- 1.0.0
-
toString
-