Record Class DiagnosticSdp
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.diagnostic.DiagnosticSdp
public record DiagnosticSdp(String ufrag, String password, String fingerprintHex, String addressHex, int port, String digestHex)
extends Record
The common, closed SDP profile used by diagnostic offers and answers.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaddressHexrecord component.static DiagnosticSdpanswer(byte[] input, DiagnosticAdmissionCodec.Claims claims, String hostFingerprintHex) Validate the provider's authenticated HTTPS response before giving SDP to native code.Returns the value of thedigestHexrecord component.endpoint(int family) final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefingerprintHexrecord component.final inthashCode()Returns a hash code value for this object.static DiagnosticSdpoffer(byte[] input, DiagnosticAdmissionCodec.Claims claims, String remoteUfrag) password()Returns the value of thepasswordrecord component.intport()Returns the value of theportrecord component.toString()Returns a string representation of this record class.ufrag()Returns the value of theufragrecord component.
-
Field Details
-
MAX_BYTES
public static final int MAX_BYTES- See Also:
-
-
Constructor Details
-
DiagnosticSdp
public DiagnosticSdp(String ufrag, String password, String fingerprintHex, String addressHex, int port, String digestHex) Creates an instance of aDiagnosticSdprecord class.- Parameters:
ufrag- the value for theufragrecord componentpassword- the value for thepasswordrecord componentfingerprintHex- the value for thefingerprintHexrecord componentaddressHex- the value for theaddressHexrecord componentport- the value for theportrecord componentdigestHex- the value for thedigestHexrecord component
-
-
Method Details
-
offer
public static DiagnosticSdp offer(byte[] input, DiagnosticAdmissionCodec.Claims claims, String remoteUfrag) -
answer
public static DiagnosticSdp answer(byte[] input, DiagnosticAdmissionCodec.Claims claims, String hostFingerprintHex) Validate the provider's authenticated HTTPS response before giving SDP to native code. -
endpoint
-
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 '=='. -
ufrag
Returns the value of theufragrecord component.- Returns:
- the value of the
ufragrecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-
fingerprintHex
Returns the value of thefingerprintHexrecord component.- Returns:
- the value of the
fingerprintHexrecord component
-
addressHex
Returns the value of theaddressHexrecord component.- Returns:
- the value of the
addressHexrecord component
-
port
public int port()Returns the value of theportrecord component.- Returns:
- the value of the
portrecord component
-
digestHex
Returns the value of thedigestHexrecord component.- Returns:
- the value of the
digestHexrecord component
-