|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.force.sdk.oauth.context.ForceSecurityContext
public final class ForceSecurityContext
This is the default implementation of a SecurityContext. This is what will hold an authenticated user's data if a custom user data retriever is not used. When using a custom user data retriever the CustomSecurityContext will wrap a ForceSecurityContext and add the additional custom fields.
| Constructor Summary | |
|---|---|
ForceSecurityContext()
|
|
| Method Summary | |
|---|---|
String |
getEndPoint()
Gets the endPoint. |
SecurityContext |
getForceSecurityContext()
Gets the forceSecurityContext. |
String |
getLanguage()
Gets the language. |
String |
getLocale()
Gets the locale. |
String |
getOrgId()
Gets the orgId. |
String |
getRefreshToken()
Gets the refreshToken. |
String |
getRole()
Gets the role. |
String |
getSessionId()
Gets the sessionId. |
String |
getTimeZone()
Gets the timeZone. |
String |
getUserId()
Gets the userId. |
String |
getUserName()
Gets the userName. |
void |
init(com.sforce.soap.partner.GetUserInfoResult userInfo)
Initialize the security context from a GetUserInfoResult object. |
void |
setEndPoint(String endPoint)
Sets the endPoint. |
void |
setLanguage(String language)
Sets the language. |
void |
setLocale(String locale)
Sets the locale. |
void |
setOrgId(String orgId)
Sets the orgid. |
void |
setRefreshToken(String refreshToken)
Sets the refreshToken. |
void |
setRole(String role)
Sets the role. |
void |
setSessionId(String sessionId)
Sets the sessionId. |
void |
setTimeZone(String timeZone)
Sets the timeZone. |
void |
setUserId(String userId)
Sets the userId. |
void |
setUserName(String userName)
Sets the userName. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ForceSecurityContext()
| Method Detail |
|---|
public void init(com.sforce.soap.partner.GetUserInfoResult userInfo)
init in interface SecurityContextuserInfo - GetUserInfoResultpublic void setOrgId(String orgId)
SecurityContext
setOrgId in interface SecurityContextorgId - Stringpublic String getOrgId()
SecurityContext
getOrgId in interface SecurityContextpublic void setUserId(String userId)
SecurityContext
setUserId in interface SecurityContextuserId - Stringpublic String getUserId()
SecurityContext
getUserId in interface SecurityContextpublic void setEndPoint(String endPoint)
SecurityContext
setEndPoint in interface SecurityContextendPoint - Stringpublic String getEndPoint()
SecurityContext
getEndPoint in interface SecurityContextpublic void setSessionId(String sessionId)
SecurityContext
setSessionId in interface SecurityContextsessionId - Stringpublic String getSessionId()
SecurityContext
getSessionId in interface SecurityContextpublic void setRefreshToken(String refreshToken)
SecurityContext
setRefreshToken in interface SecurityContextrefreshToken - Stringpublic String getRefreshToken()
SecurityContext
getRefreshToken in interface SecurityContextpublic void setUserName(String userName)
SecurityContext
setUserName in interface SecurityContextuserName - Stringpublic String getUserName()
SecurityContext
getUserName in interface SecurityContextpublic void setLanguage(String language)
SecurityContext
setLanguage in interface SecurityContextlanguage - Stringpublic String getLanguage()
SecurityContext
getLanguage in interface SecurityContextpublic void setLocale(String locale)
SecurityContext
setLocale in interface SecurityContextlocale - Stringpublic String getLocale()
SecurityContext
getLocale in interface SecurityContextpublic void setTimeZone(String timeZone)
SecurityContext
setTimeZone in interface SecurityContexttimeZone - Stringpublic String getTimeZone()
SecurityContext
getTimeZone in interface SecurityContextpublic void setRole(String role)
SecurityContext
setRole in interface SecurityContextrole - Stringpublic String getRole()
SecurityContext
getRole in interface SecurityContextpublic SecurityContext getForceSecurityContext()
SecurityContext
getForceSecurityContext in interface SecurityContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||