Record Class TokenExchangeResponse
java.lang.Object
java.lang.Record
com.enkryptify.internal.model.TokenExchangeResponse
-
Constructor Summary
ConstructorsConstructorDescriptionTokenExchangeResponse(String accessToken, int expiresIn, String tokenType) Creates an instance of aTokenExchangeResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theexpiresInrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thetokenTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TokenExchangeResponse
Creates an instance of aTokenExchangeResponserecord class.- Parameters:
accessToken- the value for theaccessTokenrecord componentexpiresIn- the value for theexpiresInrecord componenttokenType- the value for thetokenTyperecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
accessToken
Returns the value of theaccessTokenrecord component.- Returns:
- the value of the
accessTokenrecord component
-
expiresIn
public int expiresIn()Returns the value of theexpiresInrecord component.- Returns:
- the value of the
expiresInrecord component
-
tokenType
Returns the value of thetokenTyperecord component.- Returns:
- the value of the
tokenTyperecord component
-