Uses of Class
net.minecraft.network.encryption.NetworkEncryptionException
Package
Description
-
Uses of NetworkEncryptionException in net.minecraft.client.util
Modifier and TypeMethodDescriptionprivate static PlayerPublicKey.PublicKeyData
ProfileKeys.decodeKeyPairResponse
(com.mojang.authlib.yggdrasil.response.KeyPairResponse keyPairResponse) ReturnskeyPairResponse
decoded toPlayerPublicKey.PublicKeyData
.private PlayerKeyPair
ProfileKeys.fetchKeyPair
(com.mojang.authlib.minecraft.UserApiService userApiService) Returns the key pair fetched from Mojang's server. -
Uses of NetworkEncryptionException in net.minecraft.network.encryption
Modifier and TypeMethodDescriptionNetworkEncryptionUtils.KeyDecoder.apply
(byte[] key) static Cipher
NetworkEncryptionUtils.cipherFromKey
(int opMode, Key key) Creates an AES cipher from the key.static byte[]
NetworkEncryptionUtils.computeServerId
(String baseServerId, PublicKey publicKey, SecretKey secretKey) Returns the computed server ID.private static byte[]
Low-level API to perform encryption or decryption operation.private static PrivateKey
NetworkEncryptionUtils.decodeEncodedRsaPrivateKey
(byte[] key) Decodes a PCKS #8-encoded RSA private key.static PublicKey
NetworkEncryptionUtils.decodeEncodedRsaPublicKey
(byte[] key) Decodes a X.509-encoded RSA public key.private static <T extends Key>
TNetworkEncryptionUtils.decodePem
(String key, String prefix, String suffix, NetworkEncryptionUtils.KeyDecoder<T> decoder) Decodes a PEM-formatted string key.static PrivateKey
NetworkEncryptionUtils.decodeRsaPrivateKeyPem
(String key) Decodes a PEM-formatted RSA private key.static PublicKey
NetworkEncryptionUtils.decodeRsaPublicKeyPem
(String key) Decodes a PEM-formatted RSA public key.static byte[]
Decrypts an encrypted data.static SecretKey
NetworkEncryptionUtils.decryptSecretKey
(PrivateKey privateKey, byte[] encryptedSecretKey) Decrypts RSA-encrypted AES secret key.static byte[]
Encrypts a data.static PlayerPublicKey
PlayerPublicKey.fromKeyData
(PlayerPublicKey.PublicKeyData publicKeyData) static SecretKey
NetworkEncryptionUtils.generateSecretKey()
Returns a new 128 bit AES secret key.static KeyPair
NetworkEncryptionUtils.generateServerKeyPair()
Returns a new 1024 bit RSA public/private key pair.static PlayerPublicKey
PlayerPublicKey.verifyAndDecode
(SignatureVerifier servicesSignatureVerifier, PlayerPublicKey.PublicKeyData publicKeyData) Verifies the public key and decodes it. -
Uses of NetworkEncryptionException in net.minecraft.network.packet.c2s.login
ModifierConstructorDescriptionLoginKeyC2SPacket
(SecretKey secretKey, PublicKey publicKey, byte[] nonce) LoginKeyC2SPacket
(SecretKey secretKey, PublicKey publicKey, long seed, byte[] signature) -
Uses of NetworkEncryptionException in net.minecraft.network.packet.s2c.login