Record Class VerifiedAdmission
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.admission.VerifiedAdmission
public record VerifiedAdmission(String tokenId, String localUfrag, String localPassword, String remoteUfrag, String remotePassword, String remoteFingerprint, int remoteSctpPort, int remoteMaxMessageSize, long expiresAt, String networkId, String identityBindingHex, String keyId, org.cloudburstmc.netty.util.nethernet.IdentityKeyVerifier identityVerifier, byte[] diagnosticData)
extends Record
Trusted validator output. Never log credentials or reconstructed SDP.
-
Constructor Summary
ConstructorsConstructorDescriptionVerifiedAdmission(String tokenId, String localUfrag, String localPassword, String remoteUfrag, String remotePassword, String remoteFingerprint, int remoteSctpPort, int remoteMaxMessageSize, long expiresAt, String networkId, String identityBindingHex, String keyId, org.cloudburstmc.netty.util.nethernet.IdentityKeyVerifier identityVerifier) VerifiedAdmission(String tokenId, String localUfrag, String localPassword, String remoteUfrag, String remotePassword, String remoteFingerprint, int remoteSctpPort, int remoteMaxMessageSize, long expiresAt, String networkId, String identityBindingHex, String keyId, org.cloudburstmc.netty.util.nethernet.IdentityKeyVerifier identityVerifier, byte[] diagnosticData) Creates an instance of aVerifiedAdmissionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]Returns the value of thediagnosticDatarecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theidentityBindingHexrecord component.org.cloudburstmc.netty.util.nethernet.IdentityKeyVerifierReturns the value of theidentityVerifierrecord component.keyId()Returns the value of thekeyIdrecord component.Returns the value of thelocalPasswordrecord component.Returns the value of thelocalUfragrecord component.Returns the value of thenetworkIdrecord component.static StringremoteDescription(String remoteUfrag, String remotePassword, String remoteFingerprint, int remoteSctpPort, int remoteMaxMessageSize) Shared single-data-channel transport description, including diagnostic admission.Returns the value of theremoteFingerprintrecord component.intReturns the value of theremoteMaxMessageSizerecord component.Returns the value of theremotePasswordrecord component.intReturns the value of theremoteSctpPortrecord component.Returns the value of theremoteUfragrecord component.tokenId()Returns the value of thetokenIdrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
VerifiedAdmission
public VerifiedAdmission(String tokenId, String localUfrag, String localPassword, String remoteUfrag, String remotePassword, String remoteFingerprint, int remoteSctpPort, int remoteMaxMessageSize, long expiresAt, String networkId, String identityBindingHex, String keyId, org.cloudburstmc.netty.util.nethernet.IdentityKeyVerifier identityVerifier) -
VerifiedAdmission
public VerifiedAdmission(String tokenId, String localUfrag, String localPassword, String remoteUfrag, String remotePassword, String remoteFingerprint, int remoteSctpPort, int remoteMaxMessageSize, long expiresAt, String networkId, String identityBindingHex, String keyId, org.cloudburstmc.netty.util.nethernet.IdentityKeyVerifier identityVerifier, byte[] diagnosticData) Creates an instance of aVerifiedAdmissionrecord class.- Parameters:
tokenId- the value for thetokenIdrecord componentlocalUfrag- the value for thelocalUfragrecord componentlocalPassword- the value for thelocalPasswordrecord componentremoteUfrag- the value for theremoteUfragrecord componentremotePassword- the value for theremotePasswordrecord componentremoteFingerprint- the value for theremoteFingerprintrecord componentremoteSctpPort- the value for theremoteSctpPortrecord componentremoteMaxMessageSize- the value for theremoteMaxMessageSizerecord componentexpiresAt- the value for theexpiresAtrecord componentnetworkId- the value for thenetworkIdrecord componentidentityBindingHex- the value for theidentityBindingHexrecord componentkeyId- the value for thekeyIdrecord componentidentityVerifier- the value for theidentityVerifierrecord componentdiagnosticData- the value for thediagnosticDatarecord component
-
-
Method Details
-
diagnostic
public boolean diagnostic() -
diagnosticData
public byte[] diagnosticData()Returns the value of thediagnosticDatarecord component.- Returns:
- the value of the
diagnosticDatarecord component
-
remoteDescription
-
remoteDescription
public static String remoteDescription(String remoteUfrag, String remotePassword, String remoteFingerprint, int remoteSctpPort, int remoteMaxMessageSize) Shared single-data-channel transport description, including diagnostic admission. -
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 '=='. -
tokenId
Returns the value of thetokenIdrecord component.- Returns:
- the value of the
tokenIdrecord component
-
localUfrag
Returns the value of thelocalUfragrecord component.- Returns:
- the value of the
localUfragrecord component
-
localPassword
Returns the value of thelocalPasswordrecord component.- Returns:
- the value of the
localPasswordrecord component
-
remoteUfrag
Returns the value of theremoteUfragrecord component.- Returns:
- the value of the
remoteUfragrecord component
-
remotePassword
Returns the value of theremotePasswordrecord component.- Returns:
- the value of the
remotePasswordrecord component
-
remoteFingerprint
Returns the value of theremoteFingerprintrecord component.- Returns:
- the value of the
remoteFingerprintrecord component
-
remoteSctpPort
public int remoteSctpPort()Returns the value of theremoteSctpPortrecord component.- Returns:
- the value of the
remoteSctpPortrecord component
-
remoteMaxMessageSize
public int remoteMaxMessageSize()Returns the value of theremoteMaxMessageSizerecord component.- Returns:
- the value of the
remoteMaxMessageSizerecord component
-
expiresAt
public long expiresAt()Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord 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
-
identityVerifier
public org.cloudburstmc.netty.util.nethernet.IdentityKeyVerifier identityVerifier()Returns the value of theidentityVerifierrecord component.- Returns:
- the value of the
identityVerifierrecord component
-