public class RestrictedTokenContext extends Object
Constructor and Description |
---|
RestrictedTokenContext() |
Modifier and Type | Method and Description |
---|---|
static void |
clear()
Clears the current context from this Thread Local
|
static <T> T |
doUsing(Object context,
RestrictedTokenAction<T> action)
Performs an action while temporary replacing the current token
restriction checking context associated with the running thread After
returning from action run() method original context is restored
|
static Object |
getCurrent()
Returns the current context of the running thread
|
static String |
marshal(Object context)
Serialize the current context to a string
|
static Object |
unmarshal(String data)
Deserialize the context from the string created by previous call to
marshal()
|
public static Object getCurrent()
public static <T> T doUsing(Object context, RestrictedTokenAction<T> action) throws Exception
context
- context to be used with the actionaction
- action to be performedException
- if the there was an error.public static String marshal(Object context) throws Exception
context
- to be serializedException
- if the there was an error.public static Object unmarshal(String data) throws Exception
data
- string containing serialized contextException
- if the there was an error.public static void clear()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.