Class MSBedrockDeviceCodeAuthService
java.lang.Object
com.soulfiremc.server.account.MSBedrockDeviceCodeAuthService
- All Implemented Interfaces:
MCAuthService<Consumer<net.raphimc.minecraftauth.step.msa.StepMsaDeviceCode.MsaDeviceCode>, MSBedrockDeviceCodeAuthService.MSBedrockDeviceCodeAuthData>
public final class MSBedrockDeviceCodeAuthService
extends Object
implements MCAuthService<Consumer<net.raphimc.minecraftauth.step.msa.StepMsaDeviceCode.MsaDeviceCode>, MSBedrockDeviceCodeAuthService.MSBedrockDeviceCodeAuthData>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreateData(Consumer<net.raphimc.minecraftauth.step.msa.StepMsaDeviceCode.MsaDeviceCode> data) booleanisExpired(MinecraftAccount account) booleanisExpiredOrOutdated(MinecraftAccount account) login(MSBedrockDeviceCodeAuthService.MSBedrockDeviceCodeAuthData data, @Nullable SFProxy proxyData, Executor executor) refresh(MinecraftAccount account, @Nullable SFProxy proxyData, Executor executor) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MCAuthService
createDataAndLogin
-
Field Details
-
INSTANCE
-
-
Method Details
-
login
public CompletableFuture<MinecraftAccount> login(MSBedrockDeviceCodeAuthService.MSBedrockDeviceCodeAuthData data, @Nullable SFProxy proxyData, Executor executor) - Specified by:
loginin interfaceMCAuthService<Consumer<net.raphimc.minecraftauth.step.msa.StepMsaDeviceCode.MsaDeviceCode>, MSBedrockDeviceCodeAuthService.MSBedrockDeviceCodeAuthData>
-
createData
public MSBedrockDeviceCodeAuthService.MSBedrockDeviceCodeAuthData createData(Consumer<net.raphimc.minecraftauth.step.msa.StepMsaDeviceCode.MsaDeviceCode> data) - Specified by:
createDatain interfaceMCAuthService<Consumer<net.raphimc.minecraftauth.step.msa.StepMsaDeviceCode.MsaDeviceCode>, MSBedrockDeviceCodeAuthService.MSBedrockDeviceCodeAuthData>
-
refresh
public CompletableFuture<MinecraftAccount> refresh(MinecraftAccount account, @Nullable SFProxy proxyData, Executor executor) - Specified by:
refreshin interfaceMCAuthService<Consumer<net.raphimc.minecraftauth.step.msa.StepMsaDeviceCode.MsaDeviceCode>, MSBedrockDeviceCodeAuthService.MSBedrockDeviceCodeAuthData>
-
isExpired
- Specified by:
isExpiredin interfaceMCAuthService<Consumer<net.raphimc.minecraftauth.step.msa.StepMsaDeviceCode.MsaDeviceCode>, MSBedrockDeviceCodeAuthService.MSBedrockDeviceCodeAuthData>
-
isExpiredOrOutdated
- Specified by:
isExpiredOrOutdatedin interfaceMCAuthService<Consumer<net.raphimc.minecraftauth.step.msa.StepMsaDeviceCode.MsaDeviceCode>, MSBedrockDeviceCodeAuthService.MSBedrockDeviceCodeAuthData>
-