Package net.minecraft.client.multiplayer
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 net.minecraft.client.multiplayer.ProfileKeyPairManager
EMPTY_KEY_MANAGER - 
Constructor Summary
ConstructorsConstructorDescriptionAccountProfileKeyPairManager(com.mojang.authlib.minecraft.UserApiService p_253640_, UUID p_254415_, Path p_253813_)  - 
Method Summary
Modifier and TypeMethodDescriptionprivate ProfileKeyPairfetchProfileKeyPair(com.mojang.authlib.minecraft.UserApiService p_253844_) private static ProfilePublicKey.DataparsePublicKey(com.mojang.authlib.yggdrasil.response.KeyPairResponse p_253834_) private CompletableFuture<Optional<ProfileKeyPair>>readOrFetchProfileKeyPair(Optional<ProfileKeyPair> p_254074_) private Optional<ProfileKeyPair>booleanprivate voidwriteProfileKeyPair(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:
 prepareKeyPairin interfaceProfileKeyPairManager
 - 
shouldRefreshKeyPair
public boolean shouldRefreshKeyPair()- Specified by:
 shouldRefreshKeyPairin 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:
 CryptExceptionIOException
 - 
parsePublicKey
private static ProfilePublicKey.Data parsePublicKey(com.mojang.authlib.yggdrasil.response.KeyPairResponse p_253834_) throws CryptException - Throws:
 CryptException
 
 -