net.minecraft.client.multiplayer

public class AccountProfileKeyPairManager

implements ProfileKeyPairManager

gft
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
b
LOGGER
field_39074
LOGGER
private static final Duration
c
MINIMUM_PROFILE_KEY_REFRESH_INTERVAL
field_40797
TIME_UNTIL_FIRST_EXPIRY_CHECK
private static final Path
d
PROFILE_KEY_PAIR_DIR
field_39075
PROFILE_KEYS_PATH
private final com.mojang.authlib.minecraft.UserApiService
e
userApiService
field_39958
userApiService
private final Path
f
profileKeyPairPath
field_39076
jsonPath
private CompletableFuture<Optional<ProfileKeyPair>>
g
keyPair
field_39959
keyFuture
private Instant
h
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<ProfileKeyPair>>
a()
prepareKeyPair()
method_46522()
fetchKeyPair()
public boolean
b()
shouldRefreshKeyPair()
method_46523()
isExpired()
private CompletableFuture<Optional<ProfileKeyPair>>
a(Optional<cpa> arg0)
readOrFetchProfileKeyPair(Optional<ProfileKeyPair> arg0)
method_43602(Optional<class_7427> arg0)
getKeyPair(Optional<PlayerKeyPair> currentKey)
private Optional<ProfileKeyPair>
c()
readProfileKeyPair()
method_43606()
loadKeyPairFromFile()
private void
a(cpa arg0)
writeProfileKeyPair(ProfileKeyPair arg0)
method_43600(class_7427 arg0)
saveKeyPairToFile(PlayerKeyPair keyPair)
private ProfileKeyPair
a(com.mojang.authlib.minecraft.UserApiService arg0)
fetchProfileKeyPair(com.mojang.authlib.minecraft.UserApiService arg0)
method_43605(com.mojang.authlib.minecraft.UserApiService arg0)
fetchKeyPair(com.mojang.authlib.minecraft.UserApiService userApiService)
private static ProfilePublicKey$Data
a(com.mojang.authlib.yggdrasil.response.KeyPairResponse arg0)
parsePublicKey(com.mojang.authlib.yggdrasil.response.KeyPairResponse arg0)
method_44076(com.mojang.authlib.yggdrasil.response.KeyPairResponse arg0)
decodeKeyPairResponse(com.mojang.authlib.yggdrasil.response.KeyPairResponse keyPairResponse)