|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.force.sdk.oauth.userdata.UserDataRetrievalService
public class UserDataRetrievalService
Used to retrieve data about the authenticated user for storage in the SecurityContext.
Constructor Summary | |
---|---|
UserDataRetrievalService()
Create with a ForceUserDataRetriever. |
|
UserDataRetrievalService(boolean storeUsername)
Create with the given value for the storeUsername flag. |
Method Summary | |
---|---|
boolean |
isStoreUsername()
Flag stating whether or not the username should be stored. |
SecurityContext |
retrieveUserData(String sessionId,
String endpoint,
String refreshToken)
Set up the user data retriever and use it to retrieve data about the user. |
void |
setStoreUsername(boolean storeUsername)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserDataRetrievalService(boolean storeUsername)
storeUsername
- booleanpublic UserDataRetrievalService()
Method Detail |
---|
public SecurityContext retrieveUserData(String sessionId, String endpoint, String refreshToken) throws com.sforce.ws.ConnectionException
sessionId
- Stringendpoint
- StringrefreshToken
- String
com.sforce.ws.ConnectionException
- connection errorpublic void setStoreUsername(boolean storeUsername)
public boolean isStoreUsername()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |