Interface MCAuthService<I,T>
- All Known Implementing Classes:
MSBedrockCredentialsAuthService, MSBedrockDeviceCodeAuthService, MSJavaCredentialsAuthService, MSJavaDeviceCodeAuthService, MSJavaRefreshTokenAuthService, OfflineAuthService
public sealed interface MCAuthService<I,T>
permits MSBedrockCredentialsAuthService, MSBedrockDeviceCodeAuthService, MSJavaCredentialsAuthService, MSJavaDeviceCodeAuthService, MSJavaRefreshTokenAuthService, OfflineAuthService
-
Method Summary
Modifier and TypeMethodDescriptionstatic MCAuthService<String, ?> convertService(AccountTypeCredentials service) static MCAuthService<Consumer<net.raphimc.minecraftauth.step.msa.StepMsaDeviceCode.MsaDeviceCode>, ?> convertService(AccountTypeDeviceCode service) static MCAuthService<?, ?> static MCAuthService<?, ?> convertService(AuthType service) createData(I data) default CompletableFuture<MinecraftAccount> createDataAndLogin(I data, @Nullable SFProxy proxyData, Executor executor) booleanisExpired(MinecraftAccount account) booleanisExpiredOrOutdated(MinecraftAccount account) refresh(MinecraftAccount account, @Nullable SFProxy proxyData, Executor executor)
-
Method Details
-
convertService
-
convertService
static MCAuthService<Consumer<net.raphimc.minecraftauth.step.msa.StepMsaDeviceCode.MsaDeviceCode>, ?> convertService(AccountTypeDeviceCode service) -
convertService
-
convertService
-
login
-
createData
-
createDataAndLogin
default CompletableFuture<MinecraftAccount> createDataAndLogin(I data, @Nullable SFProxy proxyData, Executor executor) -
refresh
CompletableFuture<MinecraftAccount> refresh(MinecraftAccount account, @Nullable SFProxy proxyData, Executor executor) -
isExpired
-
isExpiredOrOutdated
-