java.lang.Object
java.lang.Record
it.auties.whatsapp.model.signal.auth.HandshakeMessage
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record HandshakeMessage(ClientHello clientHello, ServerHello serverHello, ClientFinish clientFinish)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClientFinishThe field for theclientFinishrecord component.private final ClientHelloThe field for theclientHellorecord component.private final ServerHelloThe field for theserverHellorecord component. -
Constructor Summary
ConstructorsConstructorDescriptionHandshakeMessage(ClientHello clientHello, ServerHello serverHello, ClientFinish clientFinish) Creates an instance of aHandshakeMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclientFinishrecord component.Returns the value of theclientHellorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theserverHellorecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
clientHello
The field for theclientHellorecord component. -
serverHello
The field for theserverHellorecord component. -
clientFinish
The field for theclientFinishrecord component.
-
-
Constructor Details
-
HandshakeMessage
public HandshakeMessage(ClientHello clientHello, ServerHello serverHello, ClientFinish clientFinish) Creates an instance of aHandshakeMessagerecord class.- Parameters:
clientHello- the value for theclientHellorecord componentserverHello- the value for theserverHellorecord componentclientFinish- the value for theclientFinishrecord 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). -
clientHello
Returns the value of theclientHellorecord component.- Returns:
- the value of the
clientHellorecord component
-
serverHello
Returns the value of theserverHellorecord component.- Returns:
- the value of the
serverHellorecord component
-
clientFinish
Returns the value of theclientFinishrecord component.- Returns:
- the value of the
clientFinishrecord component
-