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

Method Summary
 String retrieveToken(String hostAndPort, String params, String refreshToken, ForceOAuthConnectionInfo connInfo)
          Obtain an access token by calling the OAuth authentication endpoint and either trading an access code or refresh token for it.
 

Method Detail

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 call
params - - the parameters for the token request
refreshToken - - 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.