Record Class StatelessAdmissionCodec.Claims

java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.admission.StatelessAdmissionCodec.Claims
Enclosing class:
StatelessAdmissionCodec

public static record StatelessAdmissionCodec.Claims(long expiresAt, String fingerprintHex, int sctpPort, int maxMessageSize, String identityBindingHex, String networkId, String password, byte[] diagnostic) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Claims(long expiresAt, String fingerprintHex, int sctpPort, int maxMessageSize, String identityBindingHex, String networkId, String password, byte[] diagnostic)
    Creates an instance of a Claims record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Returns the value of the diagnostic record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
    Returns the value of the expiresAt record component.
    Returns the value of the fingerprintHex record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the identityBindingHex record component.
    int
    Returns the value of the maxMessageSize record component.
    Returns the value of the networkId record component.
    Returns the value of the password record component.
    int
    Returns the value of the sctpPort record component.
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Claims

      public Claims(long expiresAt, String fingerprintHex, int sctpPort, int maxMessageSize, String identityBindingHex, String networkId, String password, byte[] diagnostic)
      Creates an instance of a Claims record class.
      Parameters:
      expiresAt - the value for the expiresAt record component
      fingerprintHex - the value for the fingerprintHex record component
      sctpPort - the value for the sctpPort record component
      maxMessageSize - the value for the maxMessageSize record component
      identityBindingHex - the value for the identityBindingHex record component
      networkId - the value for the networkId record component
      password - the value for the password record component
      diagnostic - the value for the diagnostic record component
  • Method Details

    • diagnostic

      public byte[] diagnostic()
      Returns the value of the diagnostic record component.
      Returns:
      the value of the diagnostic record component
    • toString

      public 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • expiresAt

      public long expiresAt()
      Returns the value of the expiresAt record component.
      Returns:
      the value of the expiresAt record component
    • fingerprintHex

      public String fingerprintHex()
      Returns the value of the fingerprintHex record component.
      Returns:
      the value of the fingerprintHex record component
    • sctpPort

      public int sctpPort()
      Returns the value of the sctpPort record component.
      Returns:
      the value of the sctpPort record component
    • maxMessageSize

      public int maxMessageSize()
      Returns the value of the maxMessageSize record component.
      Returns:
      the value of the maxMessageSize record component
    • identityBindingHex

      public String identityBindingHex()
      Returns the value of the identityBindingHex record component.
      Returns:
      the value of the identityBindingHex record component
    • networkId

      public String networkId()
      Returns the value of the networkId record component.
      Returns:
      the value of the networkId record component
    • password

      public String password()
      Returns the value of the password record component.
      Returns:
      the value of the password record component