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 Saml2IdpContext
Returns theSaml2IdpContext
bound to the current thread.static void
Reset theSaml2IdpContext
bound to the current thread.static void
setContext
(Saml2IdpContext context) Binds the givenSaml2IdpContext
to the current thread.
-
Method Details
-
getContext
Returns theSaml2IdpContext
bound to the current thread.- Returns:
- the context
-
setContext
Binds the givenSaml2IdpContext
to the current thread.- Parameters:
context
- theSaml2IdpContext
-
resetContext
public static void resetContext()Reset theSaml2IdpContext
bound to the current thread.
-