public interface OAuthManager
Modifier and Type | Interface and Description |
---|---|
static class |
OAuthManager.Request
Represents an OAuth authorization request.
|
static class |
OAuthManager.Response
Represents a successful OAuth authorization response.
|
Modifier and Type | Method and Description |
---|---|
OAuthManager.Response |
getAuthorizationResponse(java.lang.String redirectUri,
java.lang.String state,
java.lang.String authCode)
Completes OAuth authorization and returns a
OAuthManager.Response object containing the permanent token and username. |
OAuthManager.Request |
prepareAuthorizationRequest(java.lang.String redirectUri)
Returns a
OAuthManager.Request object containing the authorization URL and unique state string to be used by UI. |
OAuthManager.Request prepareAuthorizationRequest(java.lang.String redirectUri) throws ConnectorException
OAuthManager.Request
object containing the authorization URL and unique state string to be used by UI.redirectUri
- Incorta's OAuth redirect URIOAuthManager.Request
objectConnectorException
OAuthManager.Response getAuthorizationResponse(java.lang.String redirectUri, java.lang.String state, java.lang.String authCode) throws ConnectorException
OAuthManager.Response
object containing the permanent token and username.redirectUri
- Incorta's OAuth redirect URIstate
- Unique state stringauthCode
- Authorization code obtained from third partyOAuthManager.Response
objectConnectorException