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