Class Saml2IdpContextHolder
java.lang.Object
se.swedenconnect.spring.saml.idp.context.Saml2IdpContextHolder
A holder of the
Saml2IdpContext that associates it with the current thread using a
ThreadLocal.- Author:
- Martin Lindström
-
Method Summary
Modifier and TypeMethodDescriptionstatic Saml2IdpContextReturns theSaml2IdpContextbound to the current thread.static voidReset theSaml2IdpContextbound to the current thread.static voidsetContext(Saml2IdpContext context) Binds the givenSaml2IdpContextto the current thread.
-
Method Details
-
getContext
Returns theSaml2IdpContextbound to the current thread.- Returns:
- the context
-
setContext
Binds the givenSaml2IdpContextto the current thread.- Parameters:
context- theSaml2IdpContext
-
resetContext
public static void resetContext()Reset theSaml2IdpContextbound to the current thread.
-