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 AuthorizationServerContextReturns theAuthorizationServerContextbound to the current thread.static voidReset theAuthorizationServerContextbound to the current thread.static voidsetContext(AuthorizationServerContext authorizationServerContext) Bind the givenAuthorizationServerContextto the current thread.
-
Method Details
-
getContext
Returns theAuthorizationServerContextbound to the current thread.- Returns:
- the
AuthorizationServerContext
-
setContext
Bind the givenAuthorizationServerContextto the current thread.- Parameters:
authorizationServerContext- theAuthorizationServerContext
-
resetContext
public static void resetContext()Reset theAuthorizationServerContextbound to the current thread.
-