Uses of Class
net.minecraft.util.CryptException
Packages that use CryptException
Package
Description
-
Uses of CryptException in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer that throw CryptExceptionModifier and TypeMethodDescriptionprivate ProfileKeyPair
AccountProfileKeyPairManager.fetchProfileKeyPair
(com.mojang.authlib.minecraft.UserApiService userApiService) private static ProfilePublicKey.Data
AccountProfileKeyPairManager.parsePublicKey
(com.mojang.authlib.yggdrasil.response.KeyPairResponse keyPairResponse) -
Uses of CryptException in net.minecraft.network.protocol.login
Methods in net.minecraft.network.protocol.login that throw CryptExceptionModifier and TypeMethodDescriptionClientboundHelloPacket.getPublicKey()
ServerboundKeyPacket.getSecretKey
(PrivateKey key) Constructors in net.minecraft.network.protocol.login that throw CryptExceptionModifierConstructorDescriptionServerboundKeyPacket
(SecretKey secretKey, PublicKey publicKey, byte[] challenge) -
Uses of CryptException in net.minecraft.util
Methods in net.minecraft.util that throw CryptExceptionModifier and TypeMethodDescriptionCrypt.ByteArrayToKeyFunction.apply
(byte[] bytes) private static PrivateKey
Crypt.byteToPrivateKey
(byte[] keyBytes) static PublicKey
Crypt.byteToPublicKey
(byte[] encodedKey) Create a new PublicKey from encoded X.509 dataprivate static byte[]
Crypt.cipherData
(int opMode, Key key, byte[] data) Encrypt or decrypt byte[] data using the specified keystatic SecretKey
Crypt.decryptByteToSecretKey
(PrivateKey key, byte[] secretKeyEncrypted) Decrypt shared secret AES key using RSA private keystatic byte[]
Crypt.decryptUsingKey
(Key key, byte[] data) Decrypt byte[] data with RSA private keystatic byte[]
Crypt.digestData
(String serverId, PublicKey publicKey, SecretKey secretKey) Compute a serverId hash for use by sendSessionRequest()static byte[]
Crypt.encryptUsingKey
(Key key, byte[] data) Encrypt byte[] data with RSA public keystatic KeyPair
Crypt.generateKeyPair()
static SecretKey
Crypt.generateSecretKey()
static Cipher
Creates a Cipher instance using the AES/CFB8/NoPadding algorithm.private static <T extends Key>
TCrypt.rsaStringToKey
(String keyBase64, String header, String footer, Crypt.ByteArrayToKeyFunction<T> keyFunction) static PrivateKey
Crypt.stringToPemRsaPrivateKey
(String keyBase64) static PublicKey
Crypt.stringToRsaPublicKey
(String keyBase64)