public class ServerboundKeyPacket extends Object implements MinecraftPacket
| Modifier and Type | Class and Description |
|---|---|
static class |
ServerboundKeyPacket.SaltSignaturePair |
| Constructor and Description |
|---|
ServerboundKeyPacket(io.netty.buffer.ByteBuf in,
MinecraftCodecHelper helper) |
ServerboundKeyPacket(PublicKey publicKey,
SecretKey secretKey,
byte[] verifyToken) |
ServerboundKeyPacket(PublicKey publicKey,
SecretKey secretKey,
@NotNull ServerboundKeyPacket.SaltSignaturePair saltSignature) |
| Modifier and Type | Method and Description |
|---|---|
SecretKey |
getSecretKey(PrivateKey privateKey) |
byte[] |
getVerifyToken(PrivateKey privateKey) |
boolean |
isPriority() |
void |
serialize(io.netty.buffer.ByteBuf out,
MinecraftCodecHelper helper) |
boolean |
verifyWithSaltSignature(byte[] verifyToken,
ServerboundHelloPacket.ProfilePublicKeyData profilePublicKeyData) |
public ServerboundKeyPacket(PublicKey publicKey, SecretKey secretKey, byte[] verifyToken)
public ServerboundKeyPacket(PublicKey publicKey, SecretKey secretKey, @NotNull @NotNull ServerboundKeyPacket.SaltSignaturePair saltSignature)
public ServerboundKeyPacket(io.netty.buffer.ByteBuf in,
MinecraftCodecHelper helper)
public SecretKey getSecretKey(PrivateKey privateKey)
public byte[] getVerifyToken(PrivateKey privateKey)
public boolean verifyWithSaltSignature(byte[] verifyToken,
ServerboundHelloPacket.ProfilePublicKeyData profilePublicKeyData)
public void serialize(io.netty.buffer.ByteBuf out,
MinecraftCodecHelper helper)
serialize in interface MinecraftPacketpublic boolean isPriority()
isPriority in interface com.github.steveice10.packetlib.packet.PacketCopyright © 2022. All rights reserved.