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 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 a BedrockData record class.
      Parameters:
      mojangJwt - the value for the mojangJwt record component
      identityJwt - the value for the identityJwt record component
      publicKey - the value for the publicKey record component
      privateKey - the value for the privateKey record component
      deviceId - the value for the deviceId record component
      playFabId - the value for the playFabId record component
      authChain - the value for the authChain record component
  • Method Details

    • fromProto

      public static BedrockData fromProto(MinecraftAccountProto.BedrockData data)
    • toProto

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • mojangJwt

      public String mojangJwt()
      Returns the value of the mojangJwt record component.
      Returns:
      the value of the mojangJwt record component
    • identityJwt

      public String identityJwt()
      Returns the value of the identityJwt record component.
      Returns:
      the value of the identityJwt record component
    • publicKey

      public ECPublicKey publicKey()
      Returns the value of the publicKey record component.
      Returns:
      the value of the publicKey record component
    • privateKey

      public ECPrivateKey privateKey()
      Returns the value of the privateKey record component.
      Returns:
      the value of the privateKey record component
    • deviceId

      public UUID deviceId()
      Returns the value of the deviceId record component.
      Returns:
      the value of the deviceId record component
    • playFabId

      public String playFabId()
      Returns the value of the playFabId record component.
      Returns:
      the value of the playFabId record component
    • authChain

      public com.google.gson.JsonObject authChain()
      Returns the value of the authChain record component.
      Returns:
      the value of the authChain record component