Class AuthenticationPacketHandler
java.lang.Object
com.hypixel.hytale.server.core.io.PacketHandler
com.hypixel.hytale.server.core.io.handlers.GenericConnectionPacketHandler
com.hypixel.hytale.server.core.io.handlers.login.HandshakeHandler
com.hypixel.hytale.server.core.io.handlers.login.AuthenticationPacketHandler
- All Implemented Interfaces:
IPacketReceiver
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceNested classes/interfaces inherited from class com.hypixel.hytale.server.core.io.PacketHandler
PacketHandler.DisconnectReason, PacketHandler.PingInfo -
Field Summary
FieldsFields inherited from class com.hypixel.hytale.server.core.io.handlers.GenericConnectionPacketHandler
languageFields inherited from class com.hypixel.hytale.server.core.io.PacketHandler
auth, channel, clientReadyForChunksFuture, clientReadyForChunksFutureStack, disconnectReason, MAX_PACKET_ID, pingIdRandom, pingInfo, protocolVersion, queuedPackets, queuePackets, registered -
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationPacketHandler(io.netty.channel.Channel channel, ProtocolVersion protocolVersion, String language, AuthenticationPacketHandler.AuthHandlerSupplier authHandlerSupplier, ClientType clientType, String identityToken, UUID uuid, String username, byte[] referralData, HostAddress referralSource) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidonAuthenticated(byte[] passwordChallenge) voidregistered0(PacketHandler oldHandler) Methods inherited from class com.hypixel.hytale.server.core.io.handlers.login.HandshakeHandler
accept, handle, handleMethods inherited from class com.hypixel.hytale.server.core.io.PacketHandler
clearTimeout, closed, disconnect, disconnect0, getAuth, getChannel, getClientReadyForChunksFuture, getDisconnectReason, getOperationTimeoutThreshold, getPacketStatsRecorder, getPingInfo, getProtocolVersion, getQueuedPacketsCount, handle, handlePong, isCompressionEnabled, isLANConnection, isLocalConnection, logCloseMessage, logConnectionTimings, registered, sendPing, setClientReadyForChunksFuture, setCompressionEnabled, setQueuePackets, setTimeout, stillActive, tickPing, tryFlush, unregistered, unregistered0, write, write, write, writeNoCache, writePacket
-
Field Details
-
authHandlerSupplier
-
-
Constructor Details
-
AuthenticationPacketHandler
public AuthenticationPacketHandler(@Nonnull io.netty.channel.Channel channel, @Nonnull ProtocolVersion protocolVersion, @Nonnull String language, @Nonnull AuthenticationPacketHandler.AuthHandlerSupplier authHandlerSupplier, @Nonnull ClientType clientType, @Nonnull String identityToken, @Nonnull UUID uuid, @Nonnull String username, @Nullable byte[] referralData, @Nullable HostAddress referralSource)
-
-
Method Details
-
getIdentifier
- Specified by:
getIdentifierin classPacketHandler
-
registered0
- Overrides:
registered0in classHandshakeHandler
-
onAuthenticated
protected void onAuthenticated(byte[] passwordChallenge) - Specified by:
onAuthenticatedin classHandshakeHandler
-