Class SpringSecurityContextUtils

Object
org.thymeleaf.extras.springsecurity5.util.SpringSecurityContextUtils

public final class SpringSecurityContextUtils extends Object
Since:
3.0.1
Author:
Daniel Fernández
  • Field Details

    • 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) SecurityContext object.
      See Also:
  • Method Details

    • 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)