Record Class LoginStateStore.PendingLogin
- Record Components:
nonce- The OIDCnonce. Redacted intoString().codeVerifier- The PKCEcode_verifier. Redacted intoString().redirectTarget- The post-login redirect target. May benull. Re-validated by the RP.createdAt- Framework-minted store instant.expiresAt- Framework-minted expiry ceiling (createdAt + stateNonceTtl).
- Enclosing interface:
- LoginStateStore
Secret-bearing record. codeVerifier and nonce are credentials (see the SPI
security contract). toString() redacts both, matching OAuthToken.toString() and the
MCP PendingAuthorization precedent, so a stray log line, exception message, or debugger dump
does not disclose them.
Framework-minted timestamps. The relying party stamps createdAt (from its configured
Clock) and expiresAt (createdAt plus the RP's capped
stateNonceTtl). A store MUST persist these as opaque values and MUST NOT recompute them at
consume time — the RP re-checks expiresAt independently, so an honest store that forgot
to expire a record cannot extend usability. Either timestamp may be null only for a foreign /
deserialized blob; the RP treats a null createdAt / expiresAt on consume as
expired (fail-closed), so no compact-constructor requireNonNull is imposed here.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecodeVerifierrecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.nonce()Returns the value of thenoncerecord component.Returns the value of theredirectTargetrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
PendingLogin
public PendingLogin(String nonce, String codeVerifier, String redirectTarget, Instant createdAt, Instant expiresAt) Creates an instance of aPendingLoginrecord class.- Parameters:
nonce- the value for thenoncerecord componentcodeVerifier- the value for thecodeVerifierrecord componentredirectTarget- the value for theredirectTargetrecord componentcreatedAt- the value for thecreatedAtrecord componentexpiresAt- the value for theexpiresAtrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
nonce
Returns the value of thenoncerecord component.- Returns:
- the value of the
noncerecord component
-
codeVerifier
Returns the value of thecodeVerifierrecord component.- Returns:
- the value of the
codeVerifierrecord component
-
redirectTarget
Returns the value of theredirectTargetrecord component.- Returns:
- the value of the
redirectTargetrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-