Record Class LoginService.RefreshResult
java.lang.Object
java.lang.Record
io.leandev.appfuse.security.auth.LoginService.RefreshResult
- Enclosing class:
LoginService
public static record LoginService.RefreshResult(String accessToken, String refreshToken, SessionOptions sessionOptions)
extends Record
Refresh 成功後的引擎結果;replacement credential 由 HTTP 殼寫入 Cookie,不放入 wire body。
-
Constructor Summary
ConstructorsConstructorDescriptionRefreshResult(String accessToken, String refreshToken, SessionOptions sessionOptions) Creates an instance of aRefreshResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therefreshTokenrecord component.Returns the value of thesessionOptionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RefreshResult
Creates an instance of aRefreshResultrecord class.- Parameters:
accessToken- the value for theaccessTokenrecord componentrefreshToken- the value for therefreshTokenrecord componentsessionOptions- the value for thesessionOptionsrecord 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). -
accessToken
Returns the value of theaccessTokenrecord component.- Returns:
- the value of the
accessTokenrecord component
-
refreshToken
Returns the value of therefreshTokenrecord component.- Returns:
- the value of the
refreshTokenrecord component
-
sessionOptions
Returns the value of thesessionOptionsrecord component.- Returns:
- the value of the
sessionOptionsrecord component
-