Package api.mpba.rastvdmy.dto.response
Record Class JwtAuthResponse
java.lang.Object
java.lang.Record
api.mpba.rastvdmy.dto.response.JwtAuthResponse
- Record Components:
expiresIn
- The duration (in seconds) until the token expires.token
- The JWT token issued for the authenticated session.
This class represents the response for JWT authentication.
-
Constructor Summary
ConstructorDescriptionJwtAuthResponse
(long expiresIn, String token) Creates an instance of aJwtAuthResponse
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.long
Returns the value of theexpiresIn
record component.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
-
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
public final int 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
expiresIn
public long expiresIn()Returns the value of theexpiresIn
record component.- Returns:
- the value of the
expiresIn
record component
-
token
Returns the value of thetoken
record component.- Returns:
- the value of the
token
record component
-