Class SpringSecurityContextUtils
Object
org.thymeleaf.extras.springsecurity5.util.SpringSecurityContextUtils
- Since:
- 3.0.1
- Author:
- Daniel Fernández
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
This is the name of the model attribute that will hold the (asychronously resolved)SecurityContext
object. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.context.ApplicationContext
getApplicationContext
(org.thymeleaf.context.IContext context) static org.springframework.security.core.Authentication
getAuthenticationObject
(org.thymeleaf.context.IContext context) static String
getContextPath
(org.thymeleaf.context.IContext context) static Object
getRequestAttribute
(org.thymeleaf.context.IContext context, String attributeName)
-
Field Details
-
SECURITY_CONTEXT_MODEL_ATTRIBUTE_NAME
This is the name of the model attribute that will hold the (asychronously resolved)SecurityContext
object.- See Also:
-
-
Method Details
-
getApplicationContext
public static org.springframework.context.ApplicationContext getApplicationContext(org.thymeleaf.context.IContext context) -
getRequestAttribute
-
getContextPath
-
getAuthenticationObject
public static org.springframework.security.core.Authentication getAuthenticationObject(org.thymeleaf.context.IContext context)
-