com.force.sdk.oauth.userdata
Interface UserDataRetriever

All Known Implementing Classes:
CustomUserDataRetriever, ForceUserDataRetriever

public interface UserDataRetriever

Retrieves data about a userby calling out to external sources.

Author:
John Simone

Method Summary
 SecurityContext retrieveUserData()
          Retrieves the user data and stores it in a SecurityContext object.
 void setEndpoint(String endpoint)
          Sets the endpoint.
 void setRefreshToken(String refreshToken)
          Sets the refreshToken.
 void setSessionId(String sessionId)
          Sets the sessionId.
 void setStoreUsername(boolean storeUsername)
          Sets the storeUsername flag.
 

Method Detail

retrieveUserData

SecurityContext retrieveUserData()
                                 throws com.sforce.ws.ConnectionException
Retrieves the user data and stores it in a SecurityContext object.

Returns:
SecurityContext containing the user data
Throws:
com.sforce.ws.ConnectionException - connection error

setSessionId

void setSessionId(String sessionId)
Sets the sessionId.

Parameters:
sessionId - String

setEndpoint

void setEndpoint(String endpoint)
Sets the endpoint.

Parameters:
endpoint - String

setRefreshToken

void setRefreshToken(String refreshToken)
Sets the refreshToken.

Parameters:
refreshToken - String

setStoreUsername

void setStoreUsername(boolean storeUsername)
Sets the storeUsername flag.

Parameters:
storeUsername - flag


Copyright © 2012. All Rights Reserved.