public class ADALAccountInfo extends java.lang.Object implements IAccountInfo
| Constructor and Description |
|---|
ADALAccountInfo(ADALAuthenticator authenticator,
AuthenticationResult authenticationResult,
ServiceInfo oneDriveServiceInfo,
ILogger logger)
Creates an ADALAccountInfo object.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAccessToken()
Get the access token for requests against the service root.
|
AccountType |
getAccountType()
Get the type of the account.
|
java.lang.String |
getServiceRoot()
Get the OneDrive service root for this account.
|
boolean |
isExpired()
Determines if the access token is expired and needs to be refreshed.
|
void |
refresh()
Refreshes the access token for this Account info.
|
public ADALAccountInfo(ADALAuthenticator authenticator, AuthenticationResult authenticationResult, ServiceInfo oneDriveServiceInfo, ILogger logger)
authenticator - The authenticator that this account info was created from.authenticationResult - The authentication result for this account.oneDriveServiceInfo - The service info for OneDrive.logger - The loggerpublic AccountType getAccountType()
getAccountType in interface IAccountInfopublic java.lang.String getAccessToken()
getAccessToken in interface IAccountInfopublic java.lang.String getServiceRoot()
getServiceRoot in interface IAccountInfopublic boolean isExpired()
isExpired in interface IAccountInfopublic void refresh()
refresh in interface IAccountInfo