Package com.soulfiremc.server.account
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) boolean
isExpired
(MinecraftAccount account) boolean
isExpiredOrOutdated
(MinecraftAccount account) login
(MSBedrockDeviceCodeAuthService.MSBedrockDeviceCodeAuthData data, @Nullable SFProxy proxyData, Executor executor) refresh
(MinecraftAccount account, @Nullable SFProxy proxyData, Executor executor) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.soulfiremc.server.account.MCAuthService
createDataAndLogin
-
Field Details
-
INSTANCE
-
-
Method Details
-
login
public CompletableFuture<MinecraftAccount> login(MSBedrockDeviceCodeAuthService.MSBedrockDeviceCodeAuthData data, @Nullable SFProxy proxyData, Executor executor) - Specified by:
login
in 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:
createData
in 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:
refresh
in interfaceMCAuthService<Consumer<net.raphimc.minecraftauth.step.msa.StepMsaDeviceCode.MsaDeviceCode>,
MSBedrockDeviceCodeAuthService.MSBedrockDeviceCodeAuthData>
-
isExpired
- Specified by:
isExpired
in interfaceMCAuthService<Consumer<net.raphimc.minecraftauth.step.msa.StepMsaDeviceCode.MsaDeviceCode>,
MSBedrockDeviceCodeAuthService.MSBedrockDeviceCodeAuthData>
-
isExpiredOrOutdated
- Specified by:
isExpiredOrOutdated
in interfaceMCAuthService<Consumer<net.raphimc.minecraftauth.step.msa.StepMsaDeviceCode.MsaDeviceCode>,
MSBedrockDeviceCodeAuthService.MSBedrockDeviceCodeAuthData>
-