public class MsaAuthenticationService extends AuthenticationService
| Modifier and Type | Class and Description |
|---|---|
static class |
MsaAuthenticationService.MsCodeResponse |
| Constructor and Description |
|---|
MsaAuthenticationService(String clientId) |
MsaAuthenticationService(String clientId,
String deviceCode) |
| Modifier and Type | Method and Description |
|---|---|
MsaAuthenticationService.MsCodeResponse |
getAuthCode()
Generate a single use code for Microsoft authentication
|
void |
login()
Logs the service in.
|
void |
logout()
Logs the service out.
|
String |
toString() |
getAccessToken, getAvailableProfiles, getPassword, getProperties, getSelectedProfile, getUsername, isLoggedIn, setAccessToken, setPassword, setUsernamegetBaseUri, getEndpointUri, getEndpointUri, getProxy, setBaseUri, setBaseUri, setProxypublic MsaAuthenticationService(String clientId)
public MsaAuthenticationService.MsCodeResponse getAuthCode() throws RequestException
RequestExceptionpublic void login()
throws RequestException
AuthenticationServicelogin in class AuthenticationServiceRequestException - If an error occurs while making the request.public void logout()
throws RequestException
AuthenticationServicelogout in class AuthenticationServiceRequestException - If an error occurs while making the request.Copyright © 2021. All rights reserved.