|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.force.sdk.oauth.context.CustomSecurityContext
public abstract class CustomSecurityContext
CustomSecurityContext should be extended when using a custom data retriever. The base functionality wraps ForceSecurityContext and provides the methods that are necessary to implement SecurityContext. The extension should contain fields along with getters and setters that represent any custom user data that will be stored about the authenticated user. See @doclink force-security for more information.
| Constructor Summary | |
|---|---|
CustomSecurityContext()
|
|
| 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 SecurityContext from a GetUserInfoResult object. |
void |
setEndPoint(String endPoint)
Sets the endPoint. |
void |
setForceSecurityContext(SecurityContext sc)
|
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 CustomSecurityContext()
| Method Detail |
|---|
public final void init(com.sforce.soap.partner.GetUserInfoResult userInfo)
init in interface SecurityContextuserInfo - a user info result from the partner apipublic final void setOrgId(String orgId)
SecurityContext
setOrgId in interface SecurityContextorgId - Stringpublic final String getOrgId()
SecurityContext
getOrgId in interface SecurityContextpublic final void setUserId(String userId)
SecurityContext
setUserId in interface SecurityContextuserId - Stringpublic final String getUserId()
SecurityContext
getUserId in interface SecurityContextpublic final void setEndPoint(String endPoint)
SecurityContext
setEndPoint in interface SecurityContextendPoint - Stringpublic final String getEndPoint()
SecurityContext
getEndPoint in interface SecurityContextpublic final void setSessionId(String sessionId)
SecurityContext
setSessionId in interface SecurityContextsessionId - Stringpublic final String getSessionId()
SecurityContext
getSessionId in interface SecurityContextpublic final void setRefreshToken(String refreshToken)
SecurityContext
setRefreshToken in interface SecurityContextrefreshToken - Stringpublic final String getRefreshToken()
SecurityContext
getRefreshToken in interface SecurityContextpublic final void setUserName(String userName)
SecurityContext
setUserName in interface SecurityContextuserName - Stringpublic final String getUserName()
SecurityContext
getUserName in interface SecurityContextpublic final void setLanguage(String language)
SecurityContext
setLanguage in interface SecurityContextlanguage - Stringpublic final String getLanguage()
SecurityContext
getLanguage in interface SecurityContextpublic final void setLocale(String locale)
SecurityContext
setLocale in interface SecurityContextlocale - Stringpublic final String getLocale()
SecurityContext
getLocale in interface SecurityContextpublic final void setTimeZone(String timeZone)
SecurityContext
setTimeZone in interface SecurityContexttimeZone - Stringpublic final String getTimeZone()
SecurityContext
getTimeZone in interface SecurityContextpublic String getRole()
SecurityContext
getRole in interface SecurityContextpublic void setRole(String role)
SecurityContext
setRole in interface SecurityContextrole - Stringpublic final void setForceSecurityContext(SecurityContext sc)
public final SecurityContext getForceSecurityContext()
SecurityContext
getForceSecurityContext in interface SecurityContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||