Class ServerboundKeyPacket
java.lang.Object
net.minecraft.network.protocol.login.ServerboundKeyPacket
- All Implemented Interfaces:
Packet<ServerLoginPacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final byte[]
private final com.mojang.datafixers.util.Either<byte[],
Crypt.SaltSignaturePair> -
Constructor Summary
ConstructorDescriptionServerboundKeyPacket
(SecretKey p_134856_, PublicKey p_134857_, byte[] p_134858_) ServerboundKeyPacket
(SecretKey p_238057_, PublicKey p_238058_, long p_238059_, byte[] p_238060_) ServerboundKeyPacket
(FriendlyByteBuf p_179829_) -
Method Summary
Modifier and TypeMethodDescriptiongetSecretKey
(PrivateKey p_134860_) void
handle
(ServerLoginPacketListener p_134866_) boolean
isChallengeSignatureValid
(byte[] p_238072_, ProfilePublicKey p_238073_) boolean
isNonceValid
(byte[] p_238075_, PrivateKey p_238076_) void
write
(FriendlyByteBuf p_134870_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable
-
Field Details
-
keybytes
private final byte[] keybytes -
nonceOrSaltSignature
private final com.mojang.datafixers.util.Either<byte[],Crypt.SaltSignaturePair> nonceOrSaltSignature
-
-
Constructor Details
-
ServerboundKeyPacket
public ServerboundKeyPacket(SecretKey p_134856_, PublicKey p_134857_, byte[] p_134858_) throws CryptException - Throws:
CryptException
-
ServerboundKeyPacket
public ServerboundKeyPacket(SecretKey p_238057_, PublicKey p_238058_, long p_238059_, byte[] p_238060_) throws CryptException - Throws:
CryptException
-
ServerboundKeyPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ServerLoginPacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ServerLoginPacketListener>
-
getSecretKey
- Throws:
CryptException
-
isChallengeSignatureValid
-
isNonceValid
-