public class InitialPacketHandler extends PacketHandler
Class InitialPacketHandler. Provides initialpackethandler functionality for the Hytale server.
java.lang.Object > PacketHandler > InitialPacketHandler
Field Summary
receivedConnect
private
boolean
receivedConnect
Field receivedConnect.
initialTimeout
final
Duration
initialTimeout
Field initialTimeout.
clientProtocolHash
final
String
clientProtocolHash
Field clientProtocolHash.
expectedHash
final
String
expectedHash
Field expectedHash.
protocolVersion
final
ProtocolVersion
protocolVersion
Field protocolVersion.
isTcpConnection
final
boolean
isTcpConnection
Field isTcpConnection.
hasIdentityToken
final
boolean
hasIdentityToken
Field hasIdentityToken.
isEditorClient
final
boolean
isEditorClient
Field isEditorClient.
authMode
final
Options.AuthMode
authMode
Field authMode.
supplier
final
AuthenticationPacketHandler.AuthHandlerSupplier
supplier
Field supplier.
passwordChallenge
final
byte[]
passwordChallenge
Field passwordChallenge.
setupSupplier
final
PasswordPacketHandler.SetupHandlerSupplier
setupSupplier
Field setupSupplier.
password
final
String
password
Field password.
ownerUuid
final
UUID
ownerUuid
Field ownerUuid.
challenge
final
byte[]
challenge
Field challenge.
Method Detail
InitialPacketHandler
public
public
InitialPacketHandler
(@Nonnull final Channel channel)
Method InitialPacketHandler.
- Parameters:
@Nonnull final Channelchannel
getIdentifier
public
String
getIdentifier
()
Method getIdentifier.
if
public
else
if
(packet.getId()
Method if.
- Parameters:
packet.getId(packet.getId(
disconnect
public
void
disconnect
(@Nonnull final String message)
Method disconnect.
- Parameters:
@Nonnull final Stringmessage
bytes
public
d
bytes
(max: %d)
Method bytes.
- Parameters:
max:%d
AuthenticationPacketHandler
public
new
AuthenticationPacketHandler
(this.channel, protocolVersion, language, supplier, packet.clientType, packet.identityToken, packet.uuid, packet.username, packet.referralData, packet.referralSource)
Method AuthenticationPacketHandler.
- Parameters:
this.channelthis.channelprotocolVersionprotocolVersionlanguagelanguagesuppliersupplierpacket.clientTypepacket.clientTypepacket.identityTokenpacket.identityTokenpacket.uuidpacket.uuidpacket.usernamepacket.usernamepacket.referralDatapacket.referralDatapacket.referralSourcepacket.referralSource
authentication
public
requires
authentication
(auth-mode=%s)
Method authentication.
- Parameters:
auth-mode=%sauth-mode=%s
owner
public
world
owner
(%s)
Method owner.
- Parameters:
%s%s
ConnectAccept
public
new
ConnectAccept
(passwordChallenge)
Method ConnectAccept.
- Parameters:
passwordChallengepasswordChallenge
PasswordPacketHandler
public
new
PasswordPacketHandler
(this.channel, protocolVersion, language, packet.uuid, packet.username, packet.referralData, packet.referralSource, passwordChallenge, setupSupplier)
Method PasswordPacketHandler.
- Parameters:
this.channelthis.channelprotocolVersionprotocolVersionlanguagelanguagepacket.uuidpacket.uuidpacket.usernamepacket.usernamepacket.referralDatapacket.referralDatapacket.referralSourcepacket.referralSourcepasswordChallengepasswordChallengesetupSuppliersetupSupplier
generatePasswordChallengeIfNeeded
private
byte[]
generatePasswordChallengeIfNeeded
(final UUID playerUuid)
Method generatePasswordChallengeIfNeeded.
- Parameters:
final UUIDplayerUuid
SecureRandom
public
new
SecureRandom
()
Method SecureRandom.