|
||||||||||
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 SecurityContext
userInfo
- a user info result from the partner apipublic final void setOrgId(String orgId)
SecurityContext
setOrgId
in interface SecurityContext
orgId
- Stringpublic final String getOrgId()
SecurityContext
getOrgId
in interface SecurityContext
public final void setUserId(String userId)
SecurityContext
setUserId
in interface SecurityContext
userId
- Stringpublic final String getUserId()
SecurityContext
getUserId
in interface SecurityContext
public final void setEndPoint(String endPoint)
SecurityContext
setEndPoint
in interface SecurityContext
endPoint
- Stringpublic final String getEndPoint()
SecurityContext
getEndPoint
in interface SecurityContext
public final void setSessionId(String sessionId)
SecurityContext
setSessionId
in interface SecurityContext
sessionId
- Stringpublic final String getSessionId()
SecurityContext
getSessionId
in interface SecurityContext
public final void setRefreshToken(String refreshToken)
SecurityContext
setRefreshToken
in interface SecurityContext
refreshToken
- Stringpublic final String getRefreshToken()
SecurityContext
getRefreshToken
in interface SecurityContext
public final void setUserName(String userName)
SecurityContext
setUserName
in interface SecurityContext
userName
- Stringpublic final String getUserName()
SecurityContext
getUserName
in interface SecurityContext
public final void setLanguage(String language)
SecurityContext
setLanguage
in interface SecurityContext
language
- Stringpublic final String getLanguage()
SecurityContext
getLanguage
in interface SecurityContext
public final void setLocale(String locale)
SecurityContext
setLocale
in interface SecurityContext
locale
- Stringpublic final String getLocale()
SecurityContext
getLocale
in interface SecurityContext
public final void setTimeZone(String timeZone)
SecurityContext
setTimeZone
in interface SecurityContext
timeZone
- Stringpublic final String getTimeZone()
SecurityContext
getTimeZone
in interface SecurityContext
public String getRole()
SecurityContext
getRole
in interface SecurityContext
public void setRole(String role)
SecurityContext
setRole
in interface SecurityContext
role
- 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 |