Record Class BedrockData
java.lang.Object
java.lang.Record
com.soulfiremc.server.account.service.BedrockData
- All Implemented Interfaces:
AccountData
public record BedrockData(String mojangJwt, String identityJwt, ECPublicKey publicKey, ECPrivateKey privateKey, UUID deviceId, String playFabId, com.google.gson.JsonObject authChain)
extends Record
implements AccountData
-
Constructor Summary
ConstructorsConstructorDescriptionBedrockData(String mojangJwt, String identityJwt, ECPublicKey publicKey, ECPrivateKey privateKey, UUID deviceId, String playFabId, com.google.gson.JsonObject authChain) Creates an instance of aBedrockDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonObjectReturns the value of theauthChainrecord component.deviceId()Returns the value of thedeviceIdrecord component.final booleanIndicates whether some other object is "equal to" this one.static BedrockDatafinal inthashCode()Returns a hash code value for this object.Returns the value of theidentityJwtrecord component.Returns the value of themojangJwtrecord component.Returns the value of theplayFabIdrecord component.Returns the value of theprivateKeyrecord component.Returns the value of thepublicKeyrecord component.toProto()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BedrockData
public BedrockData(String mojangJwt, String identityJwt, ECPublicKey publicKey, ECPrivateKey privateKey, UUID deviceId, String playFabId, com.google.gson.JsonObject authChain) Creates an instance of aBedrockDatarecord class.- Parameters:
mojangJwt- the value for themojangJwtrecord componentidentityJwt- the value for theidentityJwtrecord componentpublicKey- the value for thepublicKeyrecord componentprivateKey- the value for theprivateKeyrecord componentdeviceId- the value for thedeviceIdrecord componentplayFabId- the value for theplayFabIdrecord componentauthChain- the value for theauthChainrecord component
-
-
Method Details
-
fromProto
-
toProto
-
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). -
mojangJwt
Returns the value of themojangJwtrecord component.- Returns:
- the value of the
mojangJwtrecord component
-
identityJwt
Returns the value of theidentityJwtrecord component.- Returns:
- the value of the
identityJwtrecord component
-
publicKey
Returns the value of thepublicKeyrecord component.- Returns:
- the value of the
publicKeyrecord component
-
privateKey
Returns the value of theprivateKeyrecord component.- Returns:
- the value of the
privateKeyrecord component
-
deviceId
Returns the value of thedeviceIdrecord component.- Returns:
- the value of the
deviceIdrecord component
-
playFabId
Returns the value of theplayFabIdrecord component.- Returns:
- the value of the
playFabIdrecord component
-
authChain
public com.google.gson.JsonObject authChain()Returns the value of theauthChainrecord component.- Returns:
- the value of the
authChainrecord component
-