Class AccountProfileKeyPairManager
java.lang.Object
net.minecraft.client.multiplayer.AccountProfileKeyPairManager
- All Implemented Interfaces:
ProfileKeyPairManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CompletableFuture<Optional<ProfileKeyPair>> private static final org.slf4j.Loggerprivate static final Durationprivate Instantprivate static final Pathprivate final Pathprivate final com.mojang.authlib.minecraft.UserApiServiceFields inherited from interface ProfileKeyPairManager
EMPTY_KEY_MANAGER -
Constructor Summary
ConstructorsConstructorDescriptionAccountProfileKeyPairManager(com.mojang.authlib.minecraft.UserApiService userApiService, UUID profileId, Path gameDirectory) -
Method Summary
Modifier and TypeMethodDescriptionprivate @Nullable ProfileKeyPairfetchProfileKeyPair(com.mojang.authlib.minecraft.UserApiService userApiService) private static ProfilePublicKey.DataparsePublicKey(com.mojang.authlib.yggdrasil.response.KeyPairResponse response) private CompletableFuture<Optional<ProfileKeyPair>> readOrFetchProfileKeyPair(Optional<ProfileKeyPair> cachedKeyPair) private Optional<ProfileKeyPair> booleanprivate voidwriteProfileKeyPair(@Nullable ProfileKeyPair profileKeyPair)
-
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:
prepareKeyPairin interfaceProfileKeyPairManager
-
shouldRefreshKeyPair
public boolean shouldRefreshKeyPair()- Specified by:
shouldRefreshKeyPairin interfaceProfileKeyPairManager
-
readOrFetchProfileKeyPair
private CompletableFuture<Optional<ProfileKeyPair>> readOrFetchProfileKeyPair(Optional<ProfileKeyPair> cachedKeyPair) -
readProfileKeyPair
-
writeProfileKeyPair
-
fetchProfileKeyPair
private @Nullable ProfileKeyPair fetchProfileKeyPair(com.mojang.authlib.minecraft.UserApiService userApiService) throws CryptException, IOException - Throws:
CryptExceptionIOException
-
parsePublicKey
private static ProfilePublicKey.Data parsePublicKey(com.mojang.authlib.yggdrasil.response.KeyPairResponse response) throws CryptException - Throws:
CryptException
-