Class SpringSecurityContextUtils
- Object
-
- org.thymeleaf.extras.springsecurity5.util.SpringSecurityContextUtils
-
public final class SpringSecurityContextUtils extends Object- Since:
- 3.0.1
- Author:
- Daniel Fernández
-
-
Field Summary
Fields Modifier and Type Field Description static StringSECURITY_CONTEXT_MODEL_ATTRIBUTE_NAMEThis is the name of the model attribute that will hold the (asychronously resolved)SecurityContextobject.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
SECURITY_CONTEXT_MODEL_ATTRIBUTE_NAME
public static final String SECURITY_CONTEXT_MODEL_ATTRIBUTE_NAME
This is the name of the model attribute that will hold the (asychronously resolved)SecurityContextobject.- See Also:
- Constant Field Values
-
-
Method Detail
-
getApplicationContext
public static org.springframework.context.ApplicationContext getApplicationContext(org.thymeleaf.context.IContext context)
-
getRequestAttribute
public static Object getRequestAttribute(org.thymeleaf.context.IContext context, String attributeName)
-
getContextPath
public static String getContextPath(org.thymeleaf.context.IContext context)
-
getAuthenticationObject
public static org.springframework.security.core.Authentication getAuthenticationObject(org.thymeleaf.context.IContext context)
-
-