Package net.minecraft.client.multiplayer
Class AccountProfileKeyPairManager
java.lang.Object
net.minecraft.client.multiplayer.AccountProfileKeyPairManager
- All Implemented Interfaces:
ProfileKeyPairManager
-
Field Summary
Modifier and TypeFieldDescriptionprivate CompletableFuture<Optional<ProfileKeyPair>>
private static final org.slf4j.Logger
private static final Duration
private Instant
private static final Path
private final Path
private final com.mojang.authlib.minecraft.UserApiService
Fields inherited from interface net.minecraft.client.multiplayer.ProfileKeyPairManager
EMPTY_KEY_MANAGER
-
Constructor Summary
ConstructorDescriptionAccountProfileKeyPairManager
(com.mojang.authlib.minecraft.UserApiService p_253640_, UUID p_254415_, Path p_253813_) -
Method Summary
Modifier and TypeMethodDescriptionprivate ProfileKeyPair
fetchProfileKeyPair
(com.mojang.authlib.minecraft.UserApiService p_253844_) private static ProfilePublicKey.Data
parsePublicKey
(com.mojang.authlib.yggdrasil.response.KeyPairResponse p_253834_) private CompletableFuture<Optional<ProfileKeyPair>>
readOrFetchProfileKeyPair
(Optional<ProfileKeyPair> p_254074_) private Optional<ProfileKeyPair>
boolean
private void
writeProfileKeyPair
(ProfileKeyPair p_254227_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
MINIMUM_PROFILE_KEY_REFRESH_INTERVAL
-
PROFILE_KEY_PAIR_DIR
-
userApiService
private final com.mojang.authlib.minecraft.UserApiService userApiService -
profileKeyPairPath
-
keyPair
-
nextProfileKeyRefreshTime
-
-
Constructor Details
-
AccountProfileKeyPairManager
-
-
Method Details
-
prepareKeyPair
- Specified by:
prepareKeyPair
in interfaceProfileKeyPairManager
-
shouldRefreshKeyPair
public boolean shouldRefreshKeyPair()- Specified by:
shouldRefreshKeyPair
in interfaceProfileKeyPairManager
-
readOrFetchProfileKeyPair
private CompletableFuture<Optional<ProfileKeyPair>> readOrFetchProfileKeyPair(Optional<ProfileKeyPair> p_254074_) -
readProfileKeyPair
-
writeProfileKeyPair
-
fetchProfileKeyPair
private ProfileKeyPair fetchProfileKeyPair(com.mojang.authlib.minecraft.UserApiService p_253844_) throws CryptException, IOException - Throws:
CryptException
IOException
-
parsePublicKey
private static ProfilePublicKey.Data parsePublicKey(com.mojang.authlib.yggdrasil.response.KeyPairResponse p_253834_) throws CryptException - Throws:
CryptException
-