|
||||||||||
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 SecurityContext
userInfo
- GetUserInfoResultpublic void setOrgId(String orgId)
SecurityContext
setOrgId
in interface SecurityContext
orgId
- Stringpublic String getOrgId()
SecurityContext
getOrgId
in interface SecurityContext
public void setUserId(String userId)
SecurityContext
setUserId
in interface SecurityContext
userId
- Stringpublic String getUserId()
SecurityContext
getUserId
in interface SecurityContext
public void setEndPoint(String endPoint)
SecurityContext
setEndPoint
in interface SecurityContext
endPoint
- Stringpublic String getEndPoint()
SecurityContext
getEndPoint
in interface SecurityContext
public void setSessionId(String sessionId)
SecurityContext
setSessionId
in interface SecurityContext
sessionId
- Stringpublic String getSessionId()
SecurityContext
getSessionId
in interface SecurityContext
public void setRefreshToken(String refreshToken)
SecurityContext
setRefreshToken
in interface SecurityContext
refreshToken
- Stringpublic String getRefreshToken()
SecurityContext
getRefreshToken
in interface SecurityContext
public void setUserName(String userName)
SecurityContext
setUserName
in interface SecurityContext
userName
- Stringpublic String getUserName()
SecurityContext
getUserName
in interface SecurityContext
public void setLanguage(String language)
SecurityContext
setLanguage
in interface SecurityContext
language
- Stringpublic String getLanguage()
SecurityContext
getLanguage
in interface SecurityContext
public void setLocale(String locale)
SecurityContext
setLocale
in interface SecurityContext
locale
- Stringpublic String getLocale()
SecurityContext
getLocale
in interface SecurityContext
public void setTimeZone(String timeZone)
SecurityContext
setTimeZone
in interface SecurityContext
timeZone
- Stringpublic String getTimeZone()
SecurityContext
getTimeZone
in interface SecurityContext
public void setRole(String role)
SecurityContext
setRole
in interface SecurityContext
role
- Stringpublic String getRole()
SecurityContext
getRole
in interface SecurityContext
public SecurityContext getForceSecurityContext()
SecurityContext
getForceSecurityContext
in interface SecurityContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |