net.minecraft.network.protocol.login

public class ServerboundKeyPacket

implements Packet<ServerLoginPacketListener>

aiz
net.minecraft.network.protocol.login.ServerboundKeyPacket
net.minecraft.class_2917
net.minecraft.network.packet.c2s.login.LoginKeyC2SPacket
net.minecraft.src.C_5212_
net.minecraft.network.protocol.login.PacketLoginInEncryptionBegin

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
private void
a(vw arg0)
write(FriendlyByteBuf arg0)
method_56021(class_2540 arg0)
write(PacketByteBuf buf)
m_134869_(C_4983_ arg0)
public PacketType<ServerboundKeyPacket>
a()
type()
method_55846()
getPacketId()
m_5779_()
public void
a(aiw arg0)
handle(ServerLoginPacketListener arg0)
method_12653(class_2911 arg0)
apply(ServerLoginPacketListener arg0)
m_5797_(C_5209_ arg0)
public SecretKey
a(PrivateKey arg0)
getSecretKey(PrivateKey arg0)
method_12654(PrivateKey arg0)
decryptSecretKey(PrivateKey privateKey)
m_134859_(PrivateKey arg0)
public boolean
a(byte[] arg0, PrivateKey arg1)
isChallengeValid(byte[] arg0, PrivateKey arg1)
method_43643(byte[] arg0, PrivateKey arg1)
verifySignedNonce(byte[] nonce, PrivateKey privateKey)
m_253194_(byte[] p_253763_, PrivateKey arg1)