Class AuthenticationContextHolder
- java.lang.Object
-
- io.streamthoughts.azkarra.http.security.auth.AuthenticationContextHolder
-
public class AuthenticationContextHolder extends Object
Class used to hold information about current authenticated principal.
-
-
Constructor Summary
Constructors Constructor Description AuthenticationContextHolder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearContext()
Clears the context value from the current thread.static AuthenticationContext
getAuthenticationContext()
Gets theAuthenticationContext
attached to the current thread of execution.static void
setAuthenticationContext(AuthenticationContext authenticationContext)
Sets a newAuthenticationContext
with the current thread of execution.
-
-
-
Method Detail
-
getAuthenticationContext
public static AuthenticationContext getAuthenticationContext()
Gets theAuthenticationContext
attached to the current thread of execution.- Returns:
- the current
AuthenticationContext
instance.
-
setAuthenticationContext
public static void setAuthenticationContext(AuthenticationContext authenticationContext)
Sets a newAuthenticationContext
with the current thread of execution.- Parameters:
authenticationContext
- the newAuthenticationContext
instance.
-
clearContext
public static void clearContext()
Clears the context value from the current thread.
-
-