public class AuthenticationPacketHandler extends HandshakeHandler
Class AuthenticationPacketHandler. Provides authenticationpackethandler functionality for the Hytale server.
java.lang.Object > HandshakeHandler > AuthenticationPacketHandler
Field Summary
maxPlayers
final
int
maxPlayers
Field maxPlayers.
Method Detail
AuthenticationPacketHandler
public
public
AuthenticationPacketHandler
(@Nonnull final Channel channel, @Nonnull final ProtocolVersion protocolVersion, @Nonnull final String language, @Nonnull final AuthHandlerSupplier authHandlerSupplier, @Nonnull final ClientType clientType, @Nonnull final String identityToken, @Nonnull final UUID uuid, @Nonnull final String username, @Nullable final byte[] referralData, @Nullable final HostAddress referralSource)
Method AuthenticationPacketHandler.
- Parameters:
@Nonnull final Channelchannel@Nonnull final ProtocolVersionprotocolVersion@Nonnull final Stringlanguage@Nonnull final AuthHandlerSupplierauthHandlerSupplier@Nonnull final ClientTypeclientType@Nonnull final StringidentityToken@Nonnull final UUIDuuid@Nonnull final Stringusername@Nullable final byte[]referralData@Nullable final HostAddressreferralSource
getIdentifier
public
String
getIdentifier
()
Method getIdentifier.
onAuthenticated
protected
void
onAuthenticated
(final byte[] passwordChallenge)
Method onAuthenticated.
- Parameters:
final byte[]passwordChallenge
PasswordPacketHandler
public
new
PasswordPacketHandler
(this.channel, this.protocolVersion, this.language, this.auth.getUuid()
Method PasswordPacketHandler.
- Parameters:
this.channelthis.channelthis.protocolVersionthis.protocolVersionthis.languagethis.languagethis.auth.getUuid(this.auth.getUuid(