Record Class StatelessAdmissionCodec.Claims
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.admission.StatelessAdmissionCodec.Claims
- Enclosing class:
- StatelessAdmissionCodec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the value of thediagnosticrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpiresAtrecord component.Returns the value of thefingerprintHexrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theidentityBindingHexrecord component.intReturns the value of themaxMessageSizerecord component.Returns the value of thenetworkIdrecord component.password()Returns the value of thepasswordrecord component.intsctpPort()Returns the value of thesctpPortrecord component.toString()Returns a string representation of this record class.
-
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 aClaimsrecord class.- Parameters:
expiresAt- the value for theexpiresAtrecord componentfingerprintHex- the value for thefingerprintHexrecord componentsctpPort- the value for thesctpPortrecord componentmaxMessageSize- the value for themaxMessageSizerecord componentidentityBindingHex- the value for theidentityBindingHexrecord componentnetworkId- the value for thenetworkIdrecord componentpassword- the value for thepasswordrecord componentdiagnostic- the value for thediagnosticrecord component
-
-
Method Details
-
diagnostic
public byte[] diagnostic()Returns the value of thediagnosticrecord component.- Returns:
- the value of the
diagnosticrecord component
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
expiresAt
public long expiresAt()Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
fingerprintHex
Returns the value of thefingerprintHexrecord component.- Returns:
- the value of the
fingerprintHexrecord component
-
sctpPort
public int sctpPort()Returns the value of thesctpPortrecord component.- Returns:
- the value of the
sctpPortrecord component
-
maxMessageSize
public int maxMessageSize()Returns the value of themaxMessageSizerecord component.- Returns:
- the value of the
maxMessageSizerecord component
-
identityBindingHex
Returns the value of theidentityBindingHexrecord component.- Returns:
- the value of the
identityBindingHexrecord component
-
networkId
Returns the value of thenetworkIdrecord component.- Returns:
- the value of the
networkIdrecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-