public static class BedrockAuthManager.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
BedrockAuthManager |
login(MsaAuthServiceSupplier msaAuthServiceSupplier)
Login with the given
MsaAuthServiceSupplier. |
BedrockAuthManager |
login(MsaToken msaToken)
Login with the given
MsaToken. |
<T> BedrockAuthManager |
login(ParamMsaAuthServiceSupplier<T> msaAuthServiceSupplier,
T param)
Login with the given
ParamMsaAuthServiceSupplier and parameter. |
BedrockAuthManager |
login(java.lang.String refreshToken)
Login with the given refresh token.
|
public BedrockAuthManager login(MsaAuthServiceSupplier msaAuthServiceSupplier) throws java.io.IOException, java.lang.InterruptedException, java.util.concurrent.TimeoutException
MsaAuthServiceSupplier.msaAuthServiceSupplier - The MSA auth service supplier (For example JfxWebViewMsaAuthService).BedrockAuthManager.java.io.IOExceptionjava.lang.InterruptedExceptionjava.util.concurrent.TimeoutExceptionpublic <T> BedrockAuthManager login(ParamMsaAuthServiceSupplier<T> msaAuthServiceSupplier, T param) throws java.io.IOException, java.lang.InterruptedException, java.util.concurrent.TimeoutException
ParamMsaAuthServiceSupplier and parameter.T - The type of the parameter.msaAuthServiceSupplier - The MSA auth service supplier (For example DeviceCodeMsaAuthService or CredentialsMsaAuthService).param - The parameter to pass to the supplier.BedrockAuthManager.java.io.IOExceptionjava.lang.InterruptedExceptionjava.util.concurrent.TimeoutExceptionpublic BedrockAuthManager login(java.lang.String refreshToken) throws java.io.IOException
refreshToken - The MSA refresh token.BedrockAuthManager.java.io.IOExceptionpublic BedrockAuthManager login(MsaToken msaToken)
MsaToken.msaToken - The MSA token.BedrockAuthManager.