net.minecraft.client.session

public class ProfileKeysImpl

implements ProfileKeys

net.minecraft.client.multiplayer.AccountProfileKeyPairManager
net.minecraft.class_7434
net.minecraft.client.session.ProfileKeysImpl

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_39074
LOGGER
private static final Duration
MINIMUM_PROFILE_KEY_REFRESH_INTERVAL
field_40797
TIME_UNTIL_FIRST_EXPIRY_CHECK
private static final Path
PROFILE_KEY_PAIR_DIR
field_39075
PROFILE_KEYS_PATH
private final com.mojang.authlib.minecraft.UserApiService
userApiService
field_39958
userApiService
private final Path
profileKeyPairPath
field_39076
jsonPath
private CompletableFuture<Optional<PlayerKeyPair>>
keyPair
field_39959
keyFuture
private Instant
nextProfileKeyRefreshTime
field_40798
expiryCheckTime

Constructor summary

ModifierConstructor
public (com.mojang.authlib.minecraft.UserApiService userApiService, UUID uuid, Path root)

Method summary

Modifier and TypeMethod
public CompletableFuture<Optional<PlayerKeyPair>>
prepareKeyPair()
method_46522()
fetchKeyPair()
public boolean
shouldRefreshKeyPair()
method_46523()
isExpired()
private CompletableFuture<Optional<PlayerKeyPair>>
readOrFetchProfileKeyPair(Optional<ProfileKeyPair> cachedKeyPair)
method_43602(Optional<class_7427> arg0)
getKeyPair(Optional<PlayerKeyPair> currentKey)
private Optional<PlayerKeyPair>
readProfileKeyPair()
method_43606()
loadKeyPairFromFile()
private void
writeProfileKeyPair(ProfileKeyPair profileKeyPair)
method_43600(class_7427 arg0)
saveKeyPairToFile(PlayerKeyPair keyPair)
private PlayerKeyPair
fetchProfileKeyPair(com.mojang.authlib.minecraft.UserApiService userApiService)
method_43605(com.mojang.authlib.minecraft.UserApiService arg0)
fetchKeyPair(com.mojang.authlib.minecraft.UserApiService userApiService)
private static PlayerPublicKey$PublicKeyData
parsePublicKey(com.mojang.authlib.services.response.KeyPairResponse response)
method_44076(com.mojang.authlib.services.response.KeyPairResponse arg0)
decodeKeyPairResponse(com.mojang.authlib.services.response.KeyPairResponse arg0)
private void
lambda$writeProfileKeyPair$0(com.google.gson.JsonElement arg0)
method_43601(com.google.gson.JsonElement arg0)
method_43601(com.google.gson.JsonElement json)
private Optional
lambda$readOrFetchProfileKeyPair$0(Optional arg0)
method_44291(Optional arg0)
method_44291(Optional arg0)