Class AuthorizationServerContextHolder
java.lang.Object
org.springframework.security.oauth2.server.authorization.context.AuthorizationServerContextHolder
A holder of the
AuthorizationServerContext
that associates it with the current
thread using a ThreadLocal
.- Since:
- 0.2.2
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic AuthorizationServerContext
Returns theAuthorizationServerContext
bound to the current thread.static void
Reset theAuthorizationServerContext
bound to the current thread.static void
setContext
(AuthorizationServerContext authorizationServerContext) Bind the givenAuthorizationServerContext
to the current thread.
-
Method Details
-
getContext
Returns theAuthorizationServerContext
bound to the current thread.- Returns:
- the
AuthorizationServerContext
-
setContext
Bind the givenAuthorizationServerContext
to the current thread.- Parameters:
authorizationServerContext
- theAuthorizationServerContext
-
resetContext
public static void resetContext()Reset theAuthorizationServerContext
bound to the current thread.
-