mirror of https://github.com/FabricMC/yarn.git
44 lines
2.3 KiB
Plaintext
44 lines
2.3 KiB
Plaintext
CLASS net/minecraft/class_7434 net/minecraft/client/util/ProfileKeysImpl
|
|
COMMENT A class to fetch, load, and save the player's public and private keys.
|
|
FIELD field_39074 LOGGER Lorg/slf4j/Logger;
|
|
FIELD field_39075 PROFILE_KEYS_PATH Ljava/nio/file/Path;
|
|
FIELD field_39076 jsonPath Ljava/nio/file/Path;
|
|
FIELD field_39958 userApiService Lcom/mojang/authlib/minecraft/UserApiService;
|
|
FIELD field_39959 keyFuture Ljava/util/concurrent/CompletableFuture;
|
|
FIELD field_40797 TIME_UNTIL_FIRST_EXPIRY_CHECK Ljava/time/Duration;
|
|
FIELD field_40798 expiryCheckTime Ljava/time/Instant;
|
|
METHOD <init> (Lcom/mojang/authlib/minecraft/UserApiService;Ljava/util/UUID;Ljava/nio/file/Path;)V
|
|
ARG 1 userApiService
|
|
ARG 2 uuid
|
|
ARG 3 root
|
|
METHOD method_43600 saveKeyPairToFile (Lnet/minecraft/class_7427;)V
|
|
COMMENT Saves the {@code keyPair} to the cache file if {@link
|
|
COMMENT net.minecraft.SharedConstants#isDevelopment} is {@code true};
|
|
COMMENT otherwise, just deletes the cache file.
|
|
ARG 1 keyPair
|
|
METHOD method_43601 (Lcom/google/gson/JsonElement;)V
|
|
ARG 1 json
|
|
METHOD method_43602 getKeyPair (Ljava/util/Optional;)Ljava/util/concurrent/CompletableFuture;
|
|
COMMENT Gets the key pair from the file cache, or if it is unavailable or expired,
|
|
COMMENT the Mojang server.
|
|
ARG 1 currentKey
|
|
METHOD method_43605 fetchKeyPair (Lcom/mojang/authlib/minecraft/UserApiService;)Lnet/minecraft/class_7427;
|
|
COMMENT {@return the key pair fetched from Mojang's server}
|
|
COMMENT
|
|
COMMENT @throws NetworkEncryptionException when the fetched key is malformed
|
|
COMMENT @throws IOException when fetching fails
|
|
ARG 1 userApiService
|
|
METHOD method_43606 loadKeyPairFromFile ()Ljava/util/Optional;
|
|
COMMENT {@return the profile keys from the local cache}
|
|
COMMENT
|
|
COMMENT <p>This can return expired keys.
|
|
COMMENT
|
|
COMMENT @implNote The cache file is stored at {@code .minecraft/profilekeys/<uuid>.json}.
|
|
METHOD method_44076 decodeKeyPairResponse (Lcom/mojang/authlib/yggdrasil/response/KeyPairResponse;)Lnet/minecraft/class_7428$class_7443;
|
|
COMMENT {@return {@code keyPairResponse} decoded to {@link PlayerPublicKey.PublicKeyData}}
|
|
COMMENT
|
|
COMMENT @throws NetworkEncryptionException when the response is malformed
|
|
ARG 0 keyPairResponse
|
|
METHOD method_45109 (Lnet/minecraft/class_7427;)Z
|
|
ARG 0 key
|