Record Class MSJavaAccessTokenAuthService.MSJavaAccessTokenAuthData
java.lang.Object
java.lang.Record
com.soulfiremc.server.account.MSJavaAccessTokenAuthService.MSJavaAccessTokenAuthData
- Enclosing class:
MSJavaAccessTokenAuthService
-
Constructor Summary
ConstructorsConstructorDescriptionMSJavaAccessTokenAuthData(String accessToken, long expireTimeMs) Creates an instance of aMSJavaAccessTokenAuthDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpireTimeMsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MSJavaAccessTokenAuthData
Creates an instance of aMSJavaAccessTokenAuthDatarecord class.- Parameters:
accessToken- the value for theaccessTokenrecord componentexpireTimeMs- the value for theexpireTimeMsrecord 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
-
expireTimeMs
public long expireTimeMs()Returns the value of theexpireTimeMsrecord component.- Returns:
- the value of the
expireTimeMsrecord component
-