InitialPacketHandler

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 Channel channel

getIdentifier

public String getIdentifier ()

Method getIdentifier.

registered0

public void registered0 (final PacketHandler oldHandler)

Method registered0.

Parameters:
final PacketHandler oldHandler

accept

public void accept (@Nonnull final Packet packet)

Method accept.

Parameters:
@Nonnull final Packet packet

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 String message

handle

public void handle (@Nonnull final Connect packet)

Method handle.

Parameters:
@Nonnull final Connect packet

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.channel this.channel
protocolVersion protocolVersion
language language
supplier supplier
packet.clientType packet.clientType
packet.identityToken packet.identityToken
packet.uuid packet.uuid
packet.username packet.username
packet.referralData packet.referralData
packet.referralSource packet.referralSource

authentication

public requires authentication (auth-mode=%s)

Method authentication.

Parameters:
auth-mode=%s auth-mode=%s

owner

public world owner (%s)

Method owner.

Parameters:
%s %s

ConnectAccept

public new ConnectAccept (passwordChallenge)

Method ConnectAccept.

Parameters:
passwordChallenge passwordChallenge

PasswordPacketHandler

public new PasswordPacketHandler (this.channel, protocolVersion, language, packet.uuid, packet.username, packet.referralData, packet.referralSource, passwordChallenge, setupSupplier)

Method PasswordPacketHandler.

Parameters:
this.channel this.channel
protocolVersion protocolVersion
language language
packet.uuid packet.uuid
packet.username packet.username
packet.referralData packet.referralData
packet.referralSource packet.referralSource
passwordChallenge passwordChallenge
setupSupplier setupSupplier

generatePasswordChallengeIfNeeded

private byte[] generatePasswordChallengeIfNeeded (final UUID playerUuid)

Method generatePasswordChallengeIfNeeded.

Parameters:
final UUID playerUuid

SecureRandom

public new SecureRandom ()

Method SecureRandom.