|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.force.sdk.oauth.context.ForceSecurityContextHolder
public final class ForceSecurityContextHolder
Provides a mechanism to access the SecurityContext for the authenticated user. Security conexts are stored in thread local variables and managed by the ForceThreadLocalStore.
| Method Summary | |
|---|---|
static SecurityContext |
get()
Get the security context that is stored in the thread local store. |
static SecurityContext |
get(boolean createIfNeeded)
Get the security context that is stored in the thread local store. |
static void |
release()
release the current security context from the thread local store. |
static void |
set(SecurityContext sc)
Set the security context to the thread local store. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static SecurityContext get()
public static SecurityContext get(boolean createIfNeeded)
createIfNeeded - Create the security context if there currently isn't one
public static void set(SecurityContext sc)
sc - SecurityContextpublic static void release()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||