public static class MinecraftAuth.MsaTokenBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MsaTokenBuilder() |
| Modifier and Type | Method and Description |
|---|---|
AbstractStep<MsaCodeStep.MsaCode,StepMsaToken.MsaToken> |
build() |
MinecraftAuth.InitialXblSessionBuilder |
credentials(java.lang.String clientId,
java.lang.String scope)
Logs in with a Microsoft account and gets an MSA token.
|
MinecraftAuth.InitialXblSessionBuilder |
customMsaCodeStep(AbstractStep<?,MsaCodeStep.MsaCode> msaCodeStep) |
MinecraftAuth.InitialXblSessionBuilder |
deviceCode(java.lang.String clientId,
java.lang.String scope)
Uses the device code flow to get an MSA token.
|
MinecraftAuth.InitialXblSessionBuilder |
deviceCode(java.lang.String clientId,
java.lang.String scope,
int timeout)
Uses the device code flow to get an MSA token.
|
MinecraftAuth.InitialXblSessionBuilder |
externalBrowser(java.lang.String clientId,
java.lang.String scope)
Generates a URL to open in the browser to get an MSA token.
|
MinecraftAuth.InitialXblSessionBuilder |
externalBrowser(java.lang.String clientId,
java.lang.String scope,
int timeout)
Generates a URL to open in the browser to get an MSA token.
|
public MinecraftAuth.InitialXblSessionBuilder deviceCode(java.lang.String clientId, java.lang.String scope)
StepMsaDeviceCode.MsaDeviceCodeCallback as input when calling AbstractStep.getFromInput(HttpClient, AbstractStep.InitialInput).clientId - The client id of the applicationscope - The scope of the applicationpublic MinecraftAuth.InitialXblSessionBuilder deviceCode(java.lang.String clientId, java.lang.String scope, int timeout)
StepMsaDeviceCode.MsaDeviceCodeCallback as input when calling AbstractStep.getFromInput(HttpClient, AbstractStep.InitialInput).clientId - The client id of the applicationscope - The scope of the applicationtimeout - The timeout in secondspublic MinecraftAuth.InitialXblSessionBuilder externalBrowser(java.lang.String clientId, java.lang.String scope)
StepExternalBrowser.ExternalBrowserCallback as input when calling AbstractStep.getFromInput(HttpClient, AbstractStep.InitialInput).clientId - The client id of the applicationscope - The scope of the applicationpublic MinecraftAuth.InitialXblSessionBuilder externalBrowser(java.lang.String clientId, java.lang.String scope, int timeout)
StepExternalBrowser.ExternalBrowserCallback as input when calling AbstractStep.getFromInput(HttpClient, AbstractStep.InitialInput).clientId - The client id of the applicationscope - The scope of the applicationtimeout - The timeout in secondspublic MinecraftAuth.InitialXblSessionBuilder credentials(java.lang.String clientId, java.lang.String scope)
StepCredentialsMsaCode.MsaCredentials as input when calling AbstractStep.getFromInput(HttpClient, AbstractStep.InitialInput).clientId - The client id of the applicationscope - The scope of the applicationpublic MinecraftAuth.InitialXblSessionBuilder customMsaCodeStep(AbstractStep<?,MsaCodeStep.MsaCode> msaCodeStep)
public AbstractStep<MsaCodeStep.MsaCode,StepMsaToken.MsaToken> build()