Package davmail.exchange.auth
Class O365Token
java.lang.Object
davmail.exchange.auth.O365Token
O365 token wrapper
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedO365Token(String tenantId, String clientId, O365DeviceCodeAuthenticator.DeviceCode code, String password) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbuildTokenUrl(String tenantId) voidvoidsetAccessToken(String accessToken) voidsetClientId(String clientId) voidsetJsonToken(org.codehaus.jettison.json.JSONObject jsonToken) voidsetRedirectUri(String redirectUri) voidsetRefreshToken(String refreshToken)
-
Field Details
-
LOGGER
protected static final org.apache.log4j.Logger LOGGER
-
-
Constructor Details
-
O365Token
-
O365Token
public O365Token(String tenantId, String clientId, String redirectUri, String code, String password) throws IOException - Throws:
IOException
-
O365Token
protected O365Token(String tenantId, String clientId, O365DeviceCodeAuthenticator.DeviceCode code, String password) throws IOException - Throws:
IOException
-
-
Method Details
-
buildTokenUrl
-
getUsername
-
setJsonToken
- Throws:
IOException
-
setClientId
-
setRedirectUri
-
getAccessToken
- Throws:
IOException
-
setAccessToken
-
setRefreshToken
-
getRefreshToken
-
refreshToken
- Throws:
IOException
-