Record Class BffLoginCoordinator.SessionOpened
java.lang.Object
java.lang.Record
io.fluxzero.idp.bff.session.BffLoginCoordinator.SessionOpened
- Enclosing class:
BffLoginCoordinator
public static record BffLoginCoordinator.SessionOpened(BrowserHandle cookie, BrowserHandle csrf, Instant expiresAt, String returnPath)
extends Record
Tokens remain server-side. csrf may be exposed only to the authenticated same-origin browser.
-
Constructor Summary
ConstructorsConstructorDescriptionSessionOpened(BrowserHandle cookie, BrowserHandle csrf, Instant expiresAt, String returnPath) Creates an instance of aSessionOpenedrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncookie()Returns the value of thecookierecord component.csrf()Returns the value of thecsrfrecord 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.Returns the value of thereturnPathrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
SessionOpened
public SessionOpened(BrowserHandle cookie, BrowserHandle csrf, Instant expiresAt, String returnPath) Creates an instance of aSessionOpenedrecord class.- Parameters:
cookie- the value for thecookierecord componentcsrf- the value for thecsrfrecord componentexpiresAt- the value for theexpiresAtrecord componentreturnPath- the value for thereturnPathrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
cookie
Returns the value of thecookierecord component.- Returns:
- the value of the
cookierecord component
-
csrf
Returns the value of thecsrfrecord component.- Returns:
- the value of the
csrfrecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
returnPath
Returns the value of thereturnPathrecord component.- Returns:
- the value of the
returnPathrecord component
-