|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.force.sdk.oauth.context.store.SecurityContextSessionStore
public class SecurityContextSessionStore
Handles the storage of a SecurityContext via server side session.
Field Summary | |
---|---|
static String |
SECURITY_CONTEXT_SESSION_KEY
The key used to store the SecurityContext in the session. |
Constructor Summary | |
---|---|
SecurityContextSessionStore()
|
Method Summary | |
---|---|
void |
clearSecurityContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This does nothing when server side sessions are being used for SecurityContext storage. |
SecretKeySpec |
getSecureKey()
Retrieves the secret key if one is used in this security context store. |
SecurityContext |
retreiveSecurityContext(javax.servlet.http.HttpServletRequest request)
Retrieve the security context from the session. |
void |
storeSecurityContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SecurityContext securityContext)
Store the security context to the session. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SECURITY_CONTEXT_SESSION_KEY
Constructor Detail |
---|
public SecurityContextSessionStore()
Method Detail |
---|
public void storeSecurityContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, SecurityContext securityContext) throws ContextStoreException
storeSecurityContext
in interface SecurityContextStorageService
request
- HttpServletRequestresponse
- HttpServletResponsesecurityContext
- SecurityContext
ContextStoreException
- ContextStoreException
public SecurityContext retreiveSecurityContext(javax.servlet.http.HttpServletRequest request) throws ContextStoreException
retreiveSecurityContext
in interface SecurityContextStorageService
request
- HttpServletRequest
ContextStoreException
- ContextStoreException
public void clearSecurityContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
clearSecurityContext
in interface SecurityContextStorageService
request
- HttpServletRequestresponse
- HttpServletResponsepublic SecretKeySpec getSecureKey()
SecurityContextStorageService
getSecureKey
in interface SecurityContextStorageService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |