Class SpringSecurityContextUtils
Object
org.thymeleaf.extras.springsecurity6.util.SpringSecurityContextUtils
- Since:
- 3.1.0
- Author:
- Daniel Fernández
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThis is the name of the model attribute that will hold the (asychronously resolved)SecurityContextobject. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.context.ApplicationContextgetApplicationContext(org.thymeleaf.context.IContext context) static org.springframework.security.core.AuthenticationgetAuthenticationObject(org.thymeleaf.context.IContext context) static StringgetContextPath(org.thymeleaf.context.IContext context) static ObjectgetRequestAttribute(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)SecurityContextobject.- 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)
-