Class LoginKeyC2SPacket
java.lang.Object
net.minecraft.network.packet.c2s.login.LoginKeyC2SPacket
- All Implemented Interfaces:
Packet<ServerLoginPacketListener>
public class LoginKeyC2SPacket extends Object implements Packet<ServerLoginPacketListener>
- Mappings:
Namespace Name official uz
intermediary net/minecraft/class_2917
named net/minecraft/network/packet/c2s/login/LoginKeyC2SPacket
-
Field Summary
Fields Modifier and Type Field Description private byte[]
encryptedNonce
private byte[]
encryptedSecretKey
-
Constructor Summary
Constructors Constructor Description LoginKeyC2SPacket()
LoginKeyC2SPacket(SecretKey secretKey, PublicKey publicKey, byte[] nonce)
-
Method Summary
Modifier and Type Method Description void
apply(ServerLoginPacketListener serverLoginPacketListener)
byte[]
decryptNonce(PrivateKey privateKey)
SecretKey
decryptSecretKey(PrivateKey privateKey)
void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
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.Packet
isWritingErrorSkippable
-
Field Details
-
encryptedSecretKey
private byte[] encryptedSecretKey- Mappings:
Namespace Name Mixin selector official a
Luz;a:[B
intermediary field_13274
Lnet/minecraft/class_2917;field_13274:[B
named encryptedSecretKey
Lnet/minecraft/network/packet/c2s/login/LoginKeyC2SPacket;encryptedSecretKey:[B
-
encryptedNonce
private byte[] encryptedNonce- Mappings:
Namespace Name Mixin selector official b
Luz;b:[B
intermediary field_13273
Lnet/minecraft/class_2917;field_13273:[B
named encryptedNonce
Lnet/minecraft/network/packet/c2s/login/LoginKeyC2SPacket;encryptedNonce:[B
-
-
Constructor Details
-
LoginKeyC2SPacket
public LoginKeyC2SPacket() -
LoginKeyC2SPacket
@Environment(CLIENT) public LoginKeyC2SPacket(SecretKey secretKey, PublicKey publicKey, byte[] nonce) throws NetworkEncryptionException- Throws:
NetworkEncryptionException
- Mappings:
Namespace Name Mixin selector official <init>
Luz;<init>(Ljavax/crypto/SecretKey;Ljava/security/PublicKey;[B)V
intermediary <init>
Lnet/minecraft/class_2917;<init>(Ljavax/crypto/SecretKey;Ljava/security/PublicKey;[B)V
named <init>
Lnet/minecraft/network/packet/c2s/login/LoginKeyC2SPacket;<init>(Ljavax/crypto/SecretKey;Ljava/security/PublicKey;[B)V
-
-
Method Details
-
read
- Specified by:
read
in interfacePacket<ServerLoginPacketListener>
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lpa;a(Lnw;)V
intermediary method_11053
Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)V
named read
Lnet/minecraft/network/Packet;read(Lnet/minecraft/network/PacketByteBuf;)V
-
write
- Specified by:
write
in interfacePacket<ServerLoginPacketListener>
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official b
Lpa;b(Lnw;)V
intermediary method_11052
Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
apply
in interfacePacket<ServerLoginPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Luz;a(Luw;)V
intermediary method_12653
Lnet/minecraft/class_2917;method_12653(Lnet/minecraft/class_2911;)V
named apply
Lnet/minecraft/network/packet/c2s/login/LoginKeyC2SPacket;apply(Lnet/minecraft/network/listener/ServerLoginPacketListener;)V
-
decryptSecretKey
- Throws:
NetworkEncryptionException
- Mappings:
Namespace Name Mixin selector official a
Luz;a(Ljava/security/PrivateKey;)Ljavax/crypto/SecretKey;
intermediary method_12654
Lnet/minecraft/class_2917;method_12654(Ljava/security/PrivateKey;)Ljavax/crypto/SecretKey;
named decryptSecretKey
Lnet/minecraft/network/packet/c2s/login/LoginKeyC2SPacket;decryptSecretKey(Ljava/security/PrivateKey;)Ljavax/crypto/SecretKey;
-
decryptNonce
- Throws:
NetworkEncryptionException
- Mappings:
Namespace Name Mixin selector official b
Luz;b(Ljava/security/PrivateKey;)[B
intermediary method_12655
Lnet/minecraft/class_2917;method_12655(Ljava/security/PrivateKey;)[B
named decryptNonce
Lnet/minecraft/network/packet/c2s/login/LoginKeyC2SPacket;decryptNonce(Ljava/security/PrivateKey;)[B
-