Class PendingOidcLogout

java.lang.Object
com.revetsec.oidc.PendingOidcLogout

@Immutable public final class PendingOidcLogout extends Object
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 Details

    • getIssuer

      Returns the configured issuer, not authenticated identity.
      Returns:
      issuer
      Since:
      1.0.0
    • 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 sealer
      context - fixed browser-cookie context
      Returns:
      typed sealed pending cookie
      Throws:
      NullPointerException - if a required argument is null
      OidcLogoutException - if the storage profile, interruption or provider prevents sealing
      Since:
      1.0.0
    • saveToResult

      Saves using a five-second convenience budget. Only SAVED permits browser delivery; uncertain writes are never retried.
      Parameters:
      store - trusted opaque atomic store
      browserBinding - nonempty browser-specific secret, at most512UTF8bytes
      Returns:
      fixed save outcome
      Since:
      1.0.0
    • saveToResult

      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 store
      browserBinding - nonempty browser-specific secret, at most512UTF8bytes
      remaining - the caller's remaining operation budget
      Returns:
      fixed save outcome; only SAVED permits browser delivery
      Throws:
      NullPointerException - if a required argument is null
      IllegalArgumentException - if browser binding is outside the profile
      Since:
      1.0.0
    • toString

      Redacts state and browser data.
      Overrides:
      toString in class Object
      Returns:
      redacted description
      Since:
      1.0.0