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 aBedrockData
record class. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonObject
Returns the value of theauthChain
record component.deviceId()
Returns the value of thedeviceId
record component.final boolean
Indicates whether some other object is "equal to" this one.static BedrockData
final int
hashCode()
Returns a hash code value for this object.Returns the value of theidentityJwt
record component.Returns the value of themojangJwt
record component.Returns the value of theplayFabId
record component.Returns the value of theprivateKey
record component.Returns the value of thepublicKey
record component.toProto()
final String
toString()
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 aBedrockData
record class.- Parameters:
mojangJwt
- the value for themojangJwt
record componentidentityJwt
- the value for theidentityJwt
record componentpublicKey
- the value for thepublicKey
record componentprivateKey
- the value for theprivateKey
record componentdeviceId
- the value for thedeviceId
record componentplayFabId
- the value for theplayFabId
record componentauthChain
- the value for theauthChain
record component
-
-
Method Details
-
fromProto
-
toProto
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
mojangJwt
Returns the value of themojangJwt
record component.- Returns:
- the value of the
mojangJwt
record component
-
identityJwt
Returns the value of theidentityJwt
record component.- Returns:
- the value of the
identityJwt
record component
-
publicKey
Returns the value of thepublicKey
record component.- Returns:
- the value of the
publicKey
record component
-
privateKey
Returns the value of theprivateKey
record component.- Returns:
- the value of the
privateKey
record component
-
deviceId
Returns the value of thedeviceId
record component.- Returns:
- the value of the
deviceId
record component
-
playFabId
Returns the value of theplayFabId
record component.- Returns:
- the value of the
playFabId
record component
-
authChain
public com.google.gson.JsonObject authChain()Returns the value of theauthChain
record component.- Returns:
- the value of the
authChain
record component
-