Contents
Class PasswordPacketHandler
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.PasswordPacketHandler
- All Implemented Interfaces:
ConnectionHandler, IPacketReceiver
Handles password challenge-response authentication.
If no password is configured, immediately transitions to SetupPacketHandler.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class PacketHandler
PacketHandler.DisconnectReason, PacketHandler.PingInfo -
Field Summary
Fields inherited from class PacketHandler
DEFAULT_STREAM_PRIORITIES, MAX_PACKET_ID -
Constructor Summary
ConstructorsConstructorDescriptionPasswordPacketHandler(ChannelConnection channel, ProtocolVersion protocolVersion, String language, PlayerAuthentication pendingAuth, byte[] passwordChallenge, PasswordPacketHandler.SetupHandlerSupplier setupHandlerSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ToServerPacket packet) Called to accept the given incoming packetvoidhandle(PasswordResponse packet) voidhandle(ClientDisconnect packet) voidregistered0(ConnectionHandler oldHandler) Methods inherited from class PacketHandler
checkStreamOpenRateLimit, closed, compareAndSetChannel, disconnect, disconnect, getAccountProfile, getAuth, getAuxiliaryChannelCount, getChannel, getChannel, getChannel, getClientReadyForChunksFuture, getDisconnectReason, getOperationTimeoutThreshold, getPacketStatsRecorder, getPingInfo, getProtocolVersion, getQueuedPacketsCount, getSniHostname, handle, handlePong, isLANConnection, isLocalConnection, logCloseMessage, logConnectionTimings, registered, sendPing, setChannel, setChannel, setClientReadyForChunksFuture, setQueuePackets, stillActive, tickPing, tryFlush, unregistered, write, write, write, writeNoCache, writePacket
-
Constructor Details
-
PasswordPacketHandler
public PasswordPacketHandler(@Nonnull ChannelConnection channel, @Nonnull ProtocolVersion protocolVersion, @Nonnull String language, @Nonnull PlayerAuthentication pendingAuth, @Nullable byte[] passwordChallenge, @Nonnull PasswordPacketHandler.SetupHandlerSupplier setupHandlerSupplier)
-
-
Method Details
-
getIdentifier
- Specified by:
getIdentifierin classPacketHandler- Returns:
- the unique identifier for this handler
-
registered0
-
accept
Description copied from class:PacketHandlerCalled to accept the given incoming packet- Specified by:
acceptin classPacketHandler- Parameters:
packet- The packet instance to accept
-
handle
-
handle
-