com.force.sdk.oauth.connector
Interface TokenRetrievalService
- All Known Implementing Classes:
- TokenRetrievalServiceImpl
public interface TokenRetrievalService
Interface for retrieving an auth token from an access code.
- Author:
- John Simone
retrieveToken
String retrieveToken(String hostAndPort,
String params,
String refreshToken,
ForceOAuthConnectionInfo connInfo)
throws IOException
- Obtain an access token by calling the OAuth authentication endpoint and either trading an
access code or refresh token for it.
- Parameters:
hostAndPort - the post and port to callparams - - the parameters for the token requestrefreshToken - - The refresh token (optional)connInfo - - A ForceOAuthConnectionInfo object
- Returns:
- The response from the token request
- Throws:
IOException - if there is a problem retrieving the token
Copyright © 2011. All Rights Reserved.