net.minecraft.network.protocol.login

public class ServerboundKeyPacket

implements Packet<ServerLoginPacketListener>

akf
net.minecraft.network.protocol.login.ServerboundKeyPacket
net.minecraft.class_2917
net.minecraft.network.packet.c2s.login.LoginKeyC2SPacket
net.minecraft.network.protocol.login.PacketLoginInEncryptionBegin

Field summary

Modifier and TypeField
public static final StreamCodec<FriendlyByteBuf, ServerboundKeyPacket>
a
STREAM_CODEC
field_48251
CODEC
private final byte[]
b
keybytes
field_13274
encryptedSecretKey
private final byte[]
c
encryptedChallenge
field_39089
nonce

Constructor summary

ModifierConstructor
public (SecretKey secretKey, PublicKey publicKey, byte[] nonce)
private (FriendlyByteBuf buf)

Method summary

Modifier and TypeMethod
private void
a(ws arg0)
write(FriendlyByteBuf arg0)
method_56021(class_2540 arg0)
write(PacketByteBuf buf)
public PacketType<ServerboundKeyPacket>
a()
type()
method_55846()
getPacketId()
public void
a(akc arg0)
handle(ServerLoginPacketListener arg0)
method_12653(class_2911 arg0)
apply(ServerLoginPacketListener arg0)
public SecretKey
a(PrivateKey arg0)
getSecretKey(PrivateKey arg0)
method_12654(PrivateKey arg0)
decryptSecretKey(PrivateKey privateKey)
public boolean
a(byte[] arg0, PrivateKey arg1)
isChallengeValid(byte[] arg0, PrivateKey arg1)
method_43643(byte[] arg0, PrivateKey arg1)
verifySignedNonce(byte[] nonce, PrivateKey privateKey)