Record Class AdmissionPrincipal
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signalling.admission.AdmissionPrincipal
public record AdmissionPrincipal(String ticketId, String networkId, String identityBindingHex, String keyId)
extends Record
Token-authenticated context bound to the certificate checked by native DTLS. No credentials.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAdmissionPrincipal(String ticketId, String networkId, String identityBindingHex, String keyId) Creates an instance of aAdmissionPrincipalrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theidentityBindingHexrecord component.keyId()Returns the value of thekeyIdrecord component.Returns the value of thenetworkIdrecord component.ticketId()Returns the value of theticketIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
KEY
-
-
Constructor Details
-
AdmissionPrincipal
public AdmissionPrincipal(String ticketId, String networkId, String identityBindingHex, String keyId) Creates an instance of aAdmissionPrincipalrecord class.- Parameters:
ticketId- the value for theticketIdrecord componentnetworkId- the value for thenetworkIdrecord componentidentityBindingHex- the value for theidentityBindingHexrecord componentkeyId- the value for thekeyIdrecord component
-
-
Method Details
-
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). -
ticketId
Returns the value of theticketIdrecord component.- Returns:
- the value of the
ticketIdrecord component
-
networkId
Returns the value of thenetworkIdrecord component.- Returns:
- the value of the
networkIdrecord component
-
identityBindingHex
Returns the value of theidentityBindingHexrecord component.- Returns:
- the value of the
identityBindingHexrecord component
-
keyId
Returns the value of thekeyIdrecord component.- Returns:
- the value of the
keyIdrecord component
-