Class PendingOidcLogoutSource
java.lang.Object
com.revetsec.oidc.PendingOidcLogoutSource
A typed browser-bound source for logout return correlation. The application clears a sealed cookie on every
callback, including failures/exceptions; that cookie cannot promise atomic concurrent single use. A qualified
shared store must consume atomically across participating nodes/restarts. No state-only source exists.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull PendingOidcLogoutSourcefromSealedForm(@NonNull String sealedForm, @NonNull StateSealer sealer, @NonNull String context) Selects only a typed pending-logout cookie supplied by that browser.static @NonNull PendingOidcLogoutSourcefromStore(@NonNull PendingAuthorizationStore store, @NonNull BrowserBinding browserBinding) Selects a trusted opaque atomic store and this browser's separately generated binding.toString()Redacts source state and browser binding.
-
Method Details
-
fromSealedForm
public static @NonNull PendingOidcLogoutSource fromSealedForm(@NonNull String sealedForm, @NonNull StateSealer sealer, @NonNull String context) Selects only a typed pending-logout cookie supplied by that browser. Clear it on every callback.- Parameters:
sealedForm- received browser cookiesealer- application-owned sealercontext- fixed application cookie context- Returns:
- source with no atomic-single-use guarantee
- Throws:
NullPointerException- if a required argument is nullIllegalArgumentException- if the trusted context is outside the sealer profile- Since:
- 1.0.0
-
fromStore
public static @NonNull PendingOidcLogoutSource fromStore(@NonNull PendingAuthorizationStore store, @NonNull BrowserBinding browserBinding) Selects a trusted opaque atomic store and this browser's separately generated binding.- Parameters:
store- shared store whose consume must be atomicbrowserBinding- nonempty browser-specific secret, at most512UTF8bytes- Returns:
- source
- Throws:
NullPointerException- if a required argument is nullIllegalArgumentException- if browser binding is outside the fixed profile- Since:
- 1.0.0
-
toString
-