net.minecraft.network.protocol.login

public class ServerboundKeyPacket

implements Packet<ServerLoginPacketListener>

zg
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
private final byte[]
a
keybytes
field_13274
encryptedSecretKey
f_134852_
private final com.mojang.datafixers.util.Either<byte[], Crypt$SaltSignaturePair>
b
nonceOrSaltSignature
field_39089
nonce
f_238055_

Constructor summary

ModifierConstructor
public (SecretKey secretKey, PublicKey publicKey, byte[] nonce)
public (SecretKey secretKey, PublicKey publicKey, long seed, byte[] signature)
public (FriendlyByteBuf buf)

Method summary

Modifier and TypeMethod
public void
a(qx arg0)
write(FriendlyByteBuf arg0)
method_11052(class_2540 arg0)
write(PacketByteBuf arg0)
m_5779_(C_4983_ arg0)
public void
a(zd 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, bti arg1)
isChallengeSignatureValid(byte[] arg0, ProfilePublicKey arg1)
method_43643(byte[] arg0, class_7428 arg1)
verifySignedNonce(byte[] nonce, PlayerPublicKey publicKeyInfo)
m_238071_(byte[] p_238073_, C_213070_ arg1)
public boolean
a(byte[] arg0, PrivateKey arg1)
isNonceValid(byte[] arg0, PrivateKey arg1)
method_43644(byte[] arg0, PrivateKey arg1)
verifyEncryptedNonce(byte[] nonce, PrivateKey privateKey)
m_238074_(byte[] p_238076_, PrivateKey arg1)