Record Class RefreshTokenDto
java.lang.Object
java.lang.Record
com.app.security.dto.RefreshTokenDto
- Record Components:
token
- the refresh token used to request a new access token
Data Transfer Object (DTO) used to represent a refresh token.
This class encapsulates a refresh token that is returned after a successful authentication to allow clients to obtain a new access token without requiring the user to log in again.
-
Constructor Summary
ConstructorsConstructorDescriptionRefreshTokenDto
(String token) Creates an instance of aRefreshTokenDto
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.token()
Returns the value of thetoken
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RefreshTokenDto
-
-
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)
. -
token
-