Package net.minecraft.client.multiplayer
Class ProfileKeyPairManager
java.lang.Object
net.minecraft.client.multiplayer.ProfileKeyPairManager
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final record
-
Field Summary
-
Constructor Summary
ConstructorDescriptionProfileKeyPairManager
(com.mojang.authlib.minecraft.UserApiService p_233772_, UUID p_233773_, Path p_233774_) -
Method Summary
Modifier and TypeMethodDescriptionprivate ProfileKeyPair
fetchProfileKeyPair
(com.mojang.authlib.minecraft.UserApiService p_233790_) private static ProfilePublicKey.Data
parsePublicKey
(com.mojang.authlib.yggdrasil.response.KeyPairResponse p_233783_) readOrFetchProfileKeyPair
(Optional<ProfileKeyPair> p_243401_) private Optional<ProfileKeyPair>
signer()
private void
writeProfileKeyPair
(ProfileKeyPair p_233777_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
PROFILE_KEY_PAIR_DIR
-
userApiService
private final com.mojang.authlib.minecraft.UserApiService userApiService -
profileKeyPairPath
-
keyPair
-
-
Constructor Details
-
ProfileKeyPairManager
-
-
Method Details
-
preparePublicKey
-
readOrFetchProfileKeyPair
private CompletableFuture<Optional<ProfileKeyPairManager.Result>> readOrFetchProfileKeyPair(Optional<ProfileKeyPair> p_243401_) -
readProfileKeyPair
-
writeProfileKeyPair
-
fetchProfileKeyPair
private ProfileKeyPair fetchProfileKeyPair(com.mojang.authlib.minecraft.UserApiService p_233790_) throws CryptException, IOException - Throws:
CryptException
IOException
-
parsePublicKey
private static ProfilePublicKey.Data parsePublicKey(com.mojang.authlib.yggdrasil.response.KeyPairResponse p_233783_) throws CryptException - Throws:
CryptException
-
signer
-
profilePublicKey
-